diff options
author | Kazu Hirata <kazu@google.com> | 2022-08-27 21:21:00 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-08-27 21:21:00 -0700 |
commit | 33b93044352fae09376b7d71ce6f2441a34f343d (patch) | |
tree | 0438ff9cf116b4c7096032127e654a7b170a5de3 /clang/lib/Frontend/FrontendAction.cpp | |
parent | 7a617fdf39dad656e08001fb2dfa31cc42fd30e2 (diff) | |
download | llvm-33b93044352fae09376b7d71ce6f2441a34f343d.zip llvm-33b93044352fae09376b7d71ce6f2441a34f343d.tar.gz llvm-33b93044352fae09376b7d71ce6f2441a34f343d.tar.bz2 |
Use llvm::is_contained (NFC)
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 4b639a7..78c8de7 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -196,10 +196,8 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI, ActionType == PluginASTAction::CmdlineBeforeMainAction) { // This is O(|plugins| * |add_plugins|), but since both numbers are // way below 50 in practice, that's ok. - if (llvm::any_of(CI.getFrontendOpts().AddPluginActions, - [&](const std::string &PluginAction) { - return PluginAction == Plugin.getName(); - })) { + if (llvm::is_contained(CI.getFrontendOpts().AddPluginActions, + Plugin.getName())) { if (ActionType == PluginASTAction::CmdlineBeforeMainAction) ActionType = PluginASTAction::AddBeforeMainAction; else |