mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 13:50:11 +00:00
[clang-tidy] Use llvm::any_of (NFC)
This commit is contained in:
parent
234da20377
commit
a54463a4c6
@ -46,7 +46,7 @@ AST_MATCHER_P(CompoundStmt, hasAnyTextFromList, std::vector<llvm::StringRef>,
|
||||
StringRef Text = Lexer::getSourceText(
|
||||
CharSourceRange::getTokenRange(Node.getSourceRange()), SM,
|
||||
Context.getLangOpts());
|
||||
return std::any_of(List.begin(), List.end(), [&](const StringRef &Str) {
|
||||
return llvm::any_of(List, [&](const StringRef &Str) {
|
||||
return Text.contains_insensitive(Str);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user