summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/ToolingTest.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/unittests/Tooling/ToolingTest.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/unittests/Tooling/ToolingTest.cpp')
-rw-r--r--clang/unittests/Tooling/ToolingTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp
index b9f6df487f6..c4b174f183d 100644
--- a/clang/unittests/Tooling/ToolingTest.cpp
+++ b/clang/unittests/Tooling/ToolingTest.cpp
@@ -288,7 +288,7 @@ TEST(ClangToolTest, ArgumentAdjusters) {
bool Found = false;
bool Ran = false;
ArgumentsAdjuster CheckSyntaxOnlyAdjuster =
- [&Found, &Ran](const CommandLineArguments &Args) {
+ [&Found, &Ran](const CommandLineArguments &Args, StringRef /*unused*/) {
Ran = true;
if (std::find(Args.begin(), Args.end(), "-fsyntax-only") != Args.end())
Found = true;
OpenPOWER on IntegriCloud