summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-03-27 01:37:43 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-03-27 01:37:43 +0000
commita523022b5384d7a0901beea7a5f36ee9c09ba339 (patch)
tree32093f3879b65f4fb8eddf0cc4d1c80942c4af51 /clang/include
parentc9ee4de6ca41023b9231c234917d284ee8e87da9 (diff)
downloadbcm5719-llvm-a523022b5384d7a0901beea7a5f36ee9c09ba339.tar.gz
bcm5719-llvm-a523022b5384d7a0901beea7a5f36ee9c09ba339.zip
[modules] Handle defining a tag with a typedef name for linkage purposes on top of an existing imported-but-not-visible definition.
llvm-svn: 233345
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/AST/Decl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 7f7e437b736..3e3d79ff29e 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -2579,6 +2579,10 @@ public:
TypedefNameDecl *getCanonicalDecl() override { return getFirstDecl(); }
const TypedefNameDecl *getCanonicalDecl() const { return getFirstDecl(); }
+ /// Retrieves the tag declaration for which this is the typedef name for
+ /// linkage purposes, if any.
+ TagDecl *getAnonDeclWithTypedefName() const;
+
// Implement isa/cast/dyncast/etc.
static bool classof(const Decl *D) { return classofKind(D->getKind()); }
static bool classofKind(Kind K) {
OpenPOWER on IntegriCloud