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 | 4802bbed82dedaca155c62f3c6c10bfa25fea3aa (patch) | |
tree | ba3b5b67fc0f12c303a67514a44653b956cbc3fe /lib/Index | |
parent | 12b885c4eef333208b1af6497841354db36ca3d1 (diff) |
[index] For 'transparent' tag typedefs, ignore their tag reference
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index')
-rw-r--r-- | lib/Index/IndexDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Index/IndexDecl.cpp b/lib/Index/IndexDecl.cpp index 0e89350551..9bf19270e8 100644 --- a/lib/Index/IndexDecl.cpp +++ b/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; } |