diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-15 18:44:43 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-15 18:44:43 +0000 |
commit | 48ff9a0bd58061526fe28c555f57f2e0bde742d6 (patch) | |
tree | aee551dca5981d3396afa7ad1d6cbe8411b8c6e4 /clang/tools | |
parent | 29f9b7adc35a9938835b3e74e0f6464934bf77d9 (diff) | |
download | bcm5719-llvm-48ff9a0bd58061526fe28c555f57f2e0bde742d6.tar.gz bcm5719-llvm-48ff9a0bd58061526fe28c555f57f2e0bde742d6.zip |
[libclang] Handle AttributedTypeLoc for cursor visitation. Fixes rdar://9535717.
llvm-svn: 137634
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/libclang/CIndex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index cd4467c523c..bd3cac33608 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -348,6 +348,7 @@ public: bool VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL); bool VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL); bool VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL); + bool VisitAttributedTypeLoc(AttributedTypeLoc TL); bool VisitFunctionTypeLoc(FunctionTypeLoc TL, bool SkipResultType = false); bool VisitArrayTypeLoc(ArrayTypeLoc TL); bool VisitTemplateSpecializationTypeLoc(TemplateSpecializationTypeLoc TL); @@ -1521,6 +1522,10 @@ bool CursorVisitor::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) { return Visit(TL.getPointeeLoc()); } +bool CursorVisitor::VisitAttributedTypeLoc(AttributedTypeLoc TL) { + return Visit(TL.getModifiedLoc()); +} + bool CursorVisitor::VisitFunctionTypeLoc(FunctionTypeLoc TL, bool SkipResultType) { if (!SkipResultType && Visit(TL.getResultLoc())) |