std::make_unique<tooling::ArgumentsAdjustingCompilations>(
std::move(Compilations));
ResourceDirectoryCache ResourceDirCache;
+
+ // FIXME: Adjust the resulting CompilerInvocation in DependencyScanningAction
+ // instead of parsing and adjusting the raw command-line. This will make it
+ // possible to remove some code specific to clang-cl and Windows.
AdjustingCompilations->appendArgumentsAdjuster(
[&ResourceDirCache](const tooling::CommandLineArguments &Args,
StringRef FileName) {
#else
AdjustedArgs.push_back("/dev/null");
#endif
- if (!HasMT && !HasMQ) {
+ if (!HasMT && !HasMQ && Format == ScanningOutputFormat::Make) {
// We're interested in source dependencies of an object file.
std::string FileNameArg;
if (!HasMD) {
}
}
AdjustedArgs.push_back("-Xclang");
- AdjustedArgs.push_back("-Eonly");
- AdjustedArgs.push_back("-Xclang");
AdjustedArgs.push_back("-sys-header-deps");
AdjustedArgs.push_back("-Wno-error");