summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/CommonOptionsParser.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-11-05 02:19:53 +0000
committerAlexander Kornienko <alexfh@google.com>2015-11-05 02:19:53 +0000
commit857b10f471a281914984600b0490182b4672bf08 (patch)
treea2cd1119483b69dd0d614d1aac3579092e5ef306 /clang/lib/Tooling/CommonOptionsParser.cpp
parentfc5d9dd4b5bcedfeb60787bba3713d9e4bea0d89 (diff)
downloadbcm5719-llvm-857b10f471a281914984600b0490182b4672bf08.tar.gz
bcm5719-llvm-857b10f471a281914984600b0490182b4672bf08.zip
Make ArgumentAdjuster aware of the current file being processed.
Summary: This is needed to handle per-project configurations when adding extra arguments in clang-tidy for example. Reviewers: klimek, djasper Subscribers: djasper, cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D14191 llvm-svn: 252134
Diffstat (limited to 'clang/lib/Tooling/CommonOptionsParser.cpp')
-rw-r--r--clang/lib/Tooling/CommonOptionsParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/CommonOptionsParser.cpp b/clang/lib/Tooling/CommonOptionsParser.cpp
index 289874bfd8a..e6b986709a6 100644
--- a/clang/lib/Tooling/CommonOptionsParser.cpp
+++ b/clang/lib/Tooling/CommonOptionsParser.cpp
@@ -86,7 +86,7 @@ private:
adjustCommands(std::vector<CompileCommand> Commands) const {
for (CompileCommand &Command : Commands)
for (const auto &Adjuster : Adjusters)
- Command.CommandLine = Adjuster(Command.CommandLine);
+ Command.CommandLine = Adjuster(Command.CommandLine, Command.Filename);
return Commands;
}
};
OpenPOWER on IntegriCloud