From: Jan Svoboda Date: Mon, 19 Apr 2021 12:34:10 +0000 (+0200) Subject: [clang][deps] NFC: Remove unused FullDependencies member X-Git-Tag: llvmorg-14-init~9216 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95588c0da4ef08d8e497f7e4b094d96f6c38c3e5;p=platform%2Fupstream%2Fllvm.git [clang][deps] NFC: Remove unused FullDependencies member This patch removes the `FullDependencies::AdditionalNonPathCommandLine` member, as it's value-initialized and never mutated. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D100536 --- diff --git a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h index 09c3857..33e155f 100644 --- a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h +++ b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h @@ -38,13 +38,6 @@ struct FullDependencies { /// 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; - /// Get additional arguments suitable for appending to the original Clang /// command line. /// diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp index afb3ceb..a59ab68 100644 --- a/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp +++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp @@ -16,10 +16,10 @@ namespace dependencies{ 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;