From 857b10f471a281914984600b0490182b4672bf08 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Thu, 5 Nov 2015 02:19:53 +0000 Subject: 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 --- clang/unittests/Tooling/ToolingTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/Tooling/ToolingTest.cpp') 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; -- cgit v1.2.3