diff options
author | Kazu Hirata <kazu@google.com> | 2023-05-16 10:12:42 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-05-16 10:12:42 -0700 |
commit | ed1539c6ad3d2c6e888985d21f841504f69beab3 (patch) | |
tree | b66a52d786b827ac64042e38cdf8bc14688dfc21 /clang/lib/Sema/SemaOpenMP.cpp | |
parent | 4107898839c37bc7e5501fc313282d40719b0bc6 (diff) | |
download | llvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.zip llvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.tar.gz llvm-ed1539c6ad3d2c6e888985d21f841504f69beab3.tar.bz2 |
Migrate {starts,ends}with_insensitive to {starts,ends}_with_insensitive (NFC)
This patch migrates uses of StringRef::{starts,ends}with_insensitive
to StringRef::{starts,ends}_with_insensitive so that we can use names
similar to those used in std::string_view.
Note that the llvm/ directory has migrated in commit
6c3ea866e93003e16fc55d3b5cedd3bc371d1fde.
I'll post a separate patch to deprecate
StringRef::{starts,ends}with_insensitive.
Differential Revision: https://reviews.llvm.org/D150506
Diffstat (limited to 'clang/lib/Sema/SemaOpenMP.cpp')
-rw-r--r-- | clang/lib/Sema/SemaOpenMP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 4eb765a..e381d16 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -7262,7 +7262,7 @@ ExprResult Sema::ActOnOpenMPCall(ExprResult Call, Scope *Scope, return Call; if (LangOpts.OpenMP >= 51 && CalleeFnDecl->getIdentifier() && - CalleeFnDecl->getName().startswith_insensitive("omp_")) { + CalleeFnDecl->getName().starts_with_insensitive("omp_")) { // checking for any calls inside an Order region if (Scope && Scope->isOpenMPOrderClauseScope()) Diag(LParenLoc, diag::err_omp_unexpected_call_to_omp_runtime_api); |