diff --git a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h --- a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h +++ b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h @@ -38,13 +38,6 @@ /// determined that the differences are benign for this compilation. std::vector ClangModuleDeps; - /// A partial addtional set of command line arguments that can be used to - /// build this translation unit. - /// - /// Call \c getFullAdditionalCommandLine() to get a command line suitable for - /// appending to the original command line to pass to clang. - std::vector AdditionalNonPathCommandLine; - /// Gets the full addtional command line suitable for appending to the /// original command line to pass to clang. /// diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp --- a/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp +++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp @@ -16,10 +16,10 @@ std::vector FullDependencies::getAdditionalCommandLine( std::function LookupPCMPath, std::function LookupModuleDeps) const { - std::vector Ret = AdditionalNonPathCommandLine; - - Ret.push_back("-fno-implicit-modules"); - Ret.push_back("-fno-implicit-module-maps"); + std::vector Ret{ + "-fno-implicit-modules", + "-fno-implicit-module-maps", + }; std::vector PCMPaths; std::vector ModMapPaths;