r363848 - [clang][test] Add missing LambdaTemplateParams test and migrate from getLocStart
Jordan Rupprecht via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 10:43:58 PDT 2019
Author: rupprecht
Date: Wed Jun 19 10:43:58 2019
New Revision: 363848
URL: http://llvm.org/viewvc/llvm-project?rev=363848&view=rev
Log:
[clang][test] Add missing LambdaTemplateParams test and migrate from getLocStart
These were removed a long time ago in r341573, but this test was missed because it was not in cmake
Modified:
cfe/trunk/unittests/Tooling/CMakeLists.txt
cfe/trunk/unittests/Tooling/RecursiveASTVisitorTests/LambdaTemplateParams.cpp
Modified: cfe/trunk/unittests/Tooling/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/CMakeLists.txt?rev=363848&r1=363847&r2=363848&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/CMakeLists.txt (original)
+++ cfe/trunk/unittests/Tooling/CMakeLists.txt Wed Jun 19 10:43:58 2019
@@ -38,6 +38,7 @@ add_clang_unittest(ToolingTests
RecursiveASTVisitorTests/IntegerLiteral.cpp
RecursiveASTVisitorTests/LambdaDefaultCapture.cpp
RecursiveASTVisitorTests/LambdaExpr.cpp
+ RecursiveASTVisitorTests/LambdaTemplateParams.cpp
RecursiveASTVisitorTests/NestedNameSpecifiers.cpp
RecursiveASTVisitorTests/ParenExpr.cpp
RecursiveASTVisitorTests/TemplateArgumentLocTraverser.cpp
Modified: cfe/trunk/unittests/Tooling/RecursiveASTVisitorTests/LambdaTemplateParams.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/RecursiveASTVisitorTests/LambdaTemplateParams.cpp?rev=363848&r1=363847&r2=363848&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/RecursiveASTVisitorTests/LambdaTemplateParams.cpp (original)
+++ cfe/trunk/unittests/Tooling/RecursiveASTVisitorTests/LambdaTemplateParams.cpp Wed Jun 19 10:43:58 2019
@@ -21,19 +21,19 @@ public:
bool VisitTemplateTypeParmDecl(TemplateTypeParmDecl *D) {
EXPECT_FALSE(D->isImplicit());
- Match(D->getName(), D->getLocStart());
+ Match(D->getName(), D->getBeginLoc());
return true;
}
bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D) {
EXPECT_FALSE(D->isImplicit());
- Match(D->getName(), D->getLocStart());
+ Match(D->getName(), D->getBeginLoc());
return true;
}
bool VisitTemplateTemplateParmDecl(TemplateTemplateParmDecl *D) {
EXPECT_FALSE(D->isImplicit());
- Match(D->getName(), D->getLocStart());
+ Match(D->getName(), D->getBeginLoc());
return true;
}
};
More information about the cfe-commits
mailing list