Author: Kazu Hirata Date: 2023-12-16T16:24:32-08:00 New Revision: 2aaeef1fad0c1b233f6d3ca67a6c05877dc9e998
URL: https://github.com/llvm/llvm-project/commit/2aaeef1fad0c1b233f6d3ca67a6c05877dc9e998 DIFF: https://github.com/llvm/llvm-project/commit/2aaeef1fad0c1b233f6d3ca67a6c05877dc9e998.diff LOG: [Index] Fix recursive-cxx-member-calls.cpp b8f89b84bc26c46a5a10d01eb5414fbde3c8700a inadvertently replaced startswith/endswith with starts_with/ends_with even though the test uses a custom StringRef. This patch reverts the change. Added: Modified: clang/test/Index/recursive-cxx-member-calls.cpp Removed: ################################################################################ diff --git a/clang/test/Index/recursive-cxx-member-calls.cpp b/clang/test/Index/recursive-cxx-member-calls.cpp index 48fc8f14544c48..be908c506e7476 100644 --- a/clang/test/Index/recursive-cxx-member-calls.cpp +++ b/clang/test/Index/recursive-cxx-member-calls.cpp @@ -99,7 +99,7 @@ using namespace clang; AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) { llvm::StringRef AttrName = Name->getName(); - if (AttrName.starts_with("__") && AttrName.ends_with("__")) + if (AttrName.startswith("__") && AttrName.endswith("__")) AttrName = AttrName.substr(2, AttrName.size() - 4); return llvm::StringSwitch < AttributeList::Kind > (AttrName) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits