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.

llvm-svn: 288197

clang/include/clang/AST/Type.h

index b4651da..7ff9cb2 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))