Skip to content

Commit

Permalink
[Format] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  clang/unittests/Format/TokenAnnotatorTest.cpp:2181:29: error: lambda
  capture 'Style' is not used [-Werror,-Wunused-lambda-capture]
  • Loading branch information
kazutakahirata committed Jan 11, 2024
1 parent 18734f6 commit cf3421d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/unittests/Format/TokenAnnotatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ TEST_F(TokenAnnotatorTest, UnderstandTableGenTokens) {

TestLexer Lexer(Allocator, Buffers, Style);
AdditionalKeywords Keywords(Lexer.IdentTable);
auto Annotate = [&Lexer, &Style](llvm::StringRef Code) {
auto Annotate = [&Lexer](llvm::StringRef Code) {
return Lexer.annotate(Code);
};

Expand Down

0 comments on commit cf3421d

Please sign in to comment.