diff options
| author | John McCall <rjmccall@apple.com> | 2013-03-09 00:54:27 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2013-03-09 00:54:27 +0000 |
| commit | 5ea957701641c5d6f4186957a1fed0968a67fc4f (patch) | |
| tree | a5e3afb78770263d578c89ce1cd9ba833035e672 /clang/lib/Sema/SemaCodeComplete.cpp | |
| parent | 168d469a191da470b89a72f8d5340be3ba7850f1 (diff) | |
| download | bcm5719-llvm-5ea957701641c5d6f4186957a1fed0968a67fc4f.tar.gz bcm5719-llvm-5ea957701641c5d6f4186957a1fed0968a67fc4f.zip | |
Add TagDecl::hasNameForLinkage(), which is true if the tag
is non-anonymous or is defined in a typedef of itself.
llvm-svn: 176742
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index e485b356db9..78d8518b234 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -1476,7 +1476,7 @@ static const char *GetCompletionTypeString(QualType T, // Anonymous tag types are constant strings. if (const TagType *TagT = dyn_cast<TagType>(T)) if (TagDecl *Tag = TagT->getDecl()) - if (!Tag->getIdentifier() && !Tag->getTypedefNameForAnonDecl()) { + if (!Tag->hasNameForLinkage()) { switch (Tag->getTagKind()) { case TTK_Struct: return "struct <anonymous>"; case TTK_Interface: return "__interface <anonymous>"; |

