@@ -435,51 +435,6 @@ adjustCommandLine(
435
435
}
436
436
new_cmdline.emplace_back (" -D__MRDOCS__" );
437
437
438
- if ((*config)->useSystemStdlib || (*config)->useSystemLibc )
439
- {
440
- // ------------------------------------------------------
441
- // Add implicit include paths
442
- // ------------------------------------------------------
443
- // Implicit include paths are those which are automatically
444
- // added by the compiler. These will not be defined in the
445
- // compile command, so we add them here so that clang
446
- // can also find these headers.
447
- if (auto const it = implicitIncludeDirectories.find (progName);
448
- it != implicitIncludeDirectories.end ()) {
449
- for (auto const & inc : it->second )
450
- {
451
- new_cmdline.emplace_back (std::format (" -isystem{}" , inc));
452
- }
453
- }
454
- }
455
-
456
- if (!(*config)->useSystemStdlib )
457
- {
458
- // ------------------------------------------------------
459
- // Add standard library and system includes
460
- // ------------------------------------------------------
461
- // Regardless of the implicit include directories of the
462
- // compiler used in the compilation database, we disable
463
- // implicit include paths and add the standard library
464
- // and system includes manually. That gives MrDocs
465
- // access to libc++ in a portable way.
466
- new_cmdline.emplace_back (" -nostdinc++" );
467
- new_cmdline.emplace_back (" -nostdlib++" );
468
- for (auto const & inc : (*config)->stdlibIncludes )
469
- {
470
- new_cmdline.emplace_back (std::format (" -isystem{}" , inc));
471
- }
472
- }
473
-
474
- if (!(*config)->useSystemLibc )
475
- {
476
- new_cmdline.emplace_back (" -nostdinc" );
477
- for (auto const & inc : (*config)->libcIncludes )
478
- {
479
- new_cmdline.emplace_back (std::format (" -isystem{}" , inc));
480
- }
481
- }
482
-
483
438
// ------------------------------------------------------
484
439
// Add user directories to include search path
485
440
// ------------------------------------------------------
0 commit comments