]> granicus.if.org Git - clang/commitdiff
Don't declare IsEnumDeclComplete as extern
authorReid Kleckner <rnk@google.com>
Tue, 29 Nov 2016 20:46:24 +0000 (20:46 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 29 Nov 2016 20:46:24 +0000 (20:46 +0000)
Otherwise MSVC and clang-cl will see "extern inline" after merging
redeclarations and emit it in all TUs that include Type.h and Decl.h.

Noticed by inspection, since it's always the first thing to get emitted.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288197 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index b4651da4903726c6df11ff9249ddd9ec1c0e37dd..7ff9cb274ac613899558f6514d3fec7228d6fd95 100644 (file)
@@ -5805,8 +5805,8 @@ inline bool Type::isNullPtrType() const {
   return false;
 }
 
-extern bool IsEnumDeclComplete(EnumDecl *);
-extern bool IsEnumDeclScoped(EnumDecl *);
+bool IsEnumDeclComplete(EnumDecl *);
+bool IsEnumDeclScoped(EnumDecl *);
 
 inline bool Type::isIntegerType() const {
   if (const BuiltinType *BT = dyn_cast<BuiltinType>(CanonicalType))