Skip to content

Commit 60ce5f9

Browse files
committed
adjust
1 parent 58cbf5c commit 60ce5f9

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

src/lib/MrDocsCompilationDatabase.cpp

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -435,51 +435,6 @@ adjustCommandLine(
435435
}
436436
new_cmdline.emplace_back("-D__MRDOCS__");
437437

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-
483438
// ------------------------------------------------------
484439
// Add user directories to include search path
485440
// ------------------------------------------------------

0 commit comments

Comments
 (0)