From a523022b5384d7a0901beea7a5f36ee9c09ba339 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 27 Mar 2015 01:37:43 +0000 Subject: [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 --- clang/include/clang/AST/Decl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/include') 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) { -- cgit v1.2.3