Skip to content

Commit cf3421d

Browse files
[Format] Fix a warning
This patch fixes: clang/unittests/Format/TokenAnnotatorTest.cpp:2181:29: error: lambda capture 'Style' is not used [-Werror,-Wunused-lambda-capture]
1 parent 18734f6 commit cf3421d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/unittests/Format/TokenAnnotatorTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ TEST_F(TokenAnnotatorTest, UnderstandTableGenTokens) {
21782178

21792179
TestLexer Lexer(Allocator, Buffers, Style);
21802180
AdditionalKeywords Keywords(Lexer.IdentTable);
2181-
auto Annotate = [&Lexer, &Style](llvm::StringRef Code) {
2181+
auto Annotate = [&Lexer](llvm::StringRef Code) {
21822182
return Lexer.annotate(Code);
21832183
};
21842184

0 commit comments

Comments
 (0)