Author: Raphael Isemann Date: 2020-04-01T10:48:50+02:00 New Revision: 08a53dba93389a9859c12e948d8281a839cffbdb
URL: https://github.com/llvm/llvm-project/commit/08a53dba93389a9859c12e948d8281a839cffbdb DIFF: https://github.com/llvm/llvm-project/commit/08a53dba93389a9859c12e948d8281a839cffbdb.diff LOG: [clang] Minor cleanup in CloneDetectionTest Follow up to e8f13f4f62f. Added: Modified: clang/unittests/Analysis/CloneDetectionTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Analysis/CloneDetectionTest.cpp b/clang/unittests/Analysis/CloneDetectionTest.cpp index e09d0733f044..f8f3602f5a2a 100644 --- a/clang/unittests/Analysis/CloneDetectionTest.cpp +++ b/clang/unittests/Analysis/CloneDetectionTest.cpp @@ -42,7 +42,7 @@ class NoBarFunctionConstraint { for (const StmtSequence &Arg : {A, B}) { if (const auto *D = dyn_cast<const FunctionDecl>(Arg.getContainingDecl())) { - if (StringRef(D->getNameAsString()).startswith("bar")) + if (D->getName().startswith("bar")) return false; } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits