diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-06 15:05:09 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-06 15:05:09 +0000 |
commit | 62438dab83a3dc4eccedf8158d87b8da34304cfd (patch) | |
tree | 200d10f0b420a20973c68fa2be4dd6969627e6f9 /clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | |
parent | 8bbb8446f38c3043af5e2428f4a09e3b8d0f3de2 (diff) | |
download | bcm5719-llvm-62438dab83a3dc4eccedf8158d87b8da34304cfd.tar.gz bcm5719-llvm-62438dab83a3dc4eccedf8158d87b8da34304cfd.zip |
Fix RecursiveASTVisitor to visit types in ObjCPropertyDecl
Patch by Mathieu Baudet!
llvm-svn: 210339
Diffstat (limited to 'clang/unittests/Tooling/RecursiveASTVisitorTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/RecursiveASTVisitorTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp index 837a15fa887..6be734e6d4b 100644 --- a/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp +++ b/clang/unittests/Tooling/RecursiveASTVisitorTest.cpp @@ -531,6 +531,15 @@ TEST(RecursiveASTVisitor, VisitsCompoundLiteralType) { TypeLocVisitor::Lang_C)); } +TEST(RecursiveASTVisitor, VisitsObjCPropertyType) { + TypeLocVisitor Visitor; + Visitor.ExpectMatch("NSNumber", 2, 33); + EXPECT_TRUE(Visitor.runOver( + "@class NSNumber; \n" + "@interface A @property (retain) NSNumber *x; @end\n", + TypeLocVisitor::Lang_OBJC)); +} + TEST(RecursiveASTVisitor, VisitsLambdaExpr) { LambdaExprVisitor Visitor; Visitor.ExpectMatch("", 1, 12); |