diff options
author | Kazu Hirata <kazu@google.com> | 2023-12-09 14:28:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-09 14:28:45 -0800 |
commit | cc4ecfd68b79a44f101fe9924d088a83477797c0 (patch) | |
tree | 4d63911ccc3d757fc04a6706d6726e6ae765bd60 /clang/lib/Sema/SemaCodeComplete.cpp | |
parent | 5c8755f9f40e5b5f4e26a9a0fdb4993cb8a57202 (diff) | |
download | llvm-cc4ecfd68b79a44f101fe9924d088a83477797c0.zip llvm-cc4ecfd68b79a44f101fe9924d088a83477797c0.tar.gz llvm-cc4ecfd68b79a44f101fe9924d088a83477797c0.tar.bz2 |
[ADT] Rename SmallString::{starts,ends}with to {starts,ends}_with (#74916)
This patch renames {starts,ends}with to {starts,ends}_with for
consistency with std::{string,string_view}::{starts,ends}_with in
C++20. Since there are only a handful of occurrences, this patch
skips the deprecation phase and simply renames them.
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index 6169144..143968b4 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -10112,7 +10112,7 @@ void Sema::CodeCompleteIncludedFile(llvm::StringRef Dir, bool Angled) { const StringRef &Dirname = llvm::sys::path::filename(Dir); const bool isQt = Dirname.startswith("Qt") || Dirname == "ActiveQt"; const bool ExtensionlessHeaders = - IsSystem || isQt || Dir.endswith(".framework/Headers"); + IsSystem || isQt || Dir.ends_with(".framework/Headers"); std::error_code EC; unsigned Count = 0; for (auto It = FS.dir_begin(Dir, EC); |