mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 07:31:28 +00:00
[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]
This commit is contained in:
parent
18734f6066
commit
cf3421de58
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user