diff options
author | Fangrui Song <maskray@google.com> | 2019-03-31 08:48:19 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-03-31 08:48:19 +0000 |
commit | 75e74e077c9fed24c00fb5e12078df2b192841da (patch) | |
tree | f3d417ebdba005b4b25dbfc350ab4159662a3418 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | eaf4484e94e7de38ef9d80cb80d92b26ef5f657e (diff) | |
download | llvm-75e74e077c9fed24c00fb5e12078df2b192841da.zip llvm-75e74e077c9fed24c00fb5e12078df2b192841da.tar.gz llvm-75e74e077c9fed24c00fb5e12078df2b192841da.tar.bz2 |
Range-style std::find{,_if} -> llvm::find{,_if}. NFC
llvm-svn: 357359
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 7f1fb90..35ad1c6 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1413,9 +1413,9 @@ static bool checkVerifyPrefixes(const std::vector<std::string> &VerifyPrefixes, for (const auto &Prefix : VerifyPrefixes) { // Every prefix must start with a letter and contain only alphanumeric // characters, hyphens, and underscores. - auto BadChar = std::find_if(Prefix.begin(), Prefix.end(), - [](char C){return !isAlphanumeric(C) - && C != '-' && C != '_';}); + auto BadChar = llvm::find_if(Prefix, [](char C) { + return !isAlphanumeric(C) && C != '-' && C != '_'; + }); if (BadChar != Prefix.end() || !isLetter(Prefix[0])) { Success = false; if (Diags) { |