diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-04-21 05:42:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-04-21 05:42:40 +0000 |
commit | f932612fdf942ca90a5fdca2a9423450258fedca (patch) | |
tree | f9aa22230758c923d29af8877a43494ec76fbf62 /clang/lib/Index/IndexDecl.cpp | |
parent | 56169ed753fb1a6ae3cc6231b1e9ed024c0c6b00 (diff) | |
download | bcm5719-llvm-f932612fdf942ca90a5fdca2a9423450258fedca.tar.gz bcm5719-llvm-f932612fdf942ca90a5fdca2a9423450258fedca.zip |
[index] For 'transparent' tag typedefs, ignore their tag reference
llvm-svn: 300948
Diffstat (limited to 'clang/lib/Index/IndexDecl.cpp')
-rw-r--r-- | clang/lib/Index/IndexDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Index/IndexDecl.cpp b/clang/lib/Index/IndexDecl.cpp index 0e893505516..9bf19270e8d 100644 --- a/clang/lib/Index/IndexDecl.cpp +++ b/clang/lib/Index/IndexDecl.cpp @@ -231,10 +231,11 @@ public: } bool VisitTypedefNameDecl(const TypedefNameDecl *D) { - if (!D->isTransparentTag()) + if (!D->isTransparentTag()) { if (!IndexCtx.handleDecl(D)) return false; - IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); + IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D); + } return true; } |