r288197 - Don't declare IsEnumDeclComplete as extern

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 29 12:46:24 PST 2016


Author: rnk
Date: Tue Nov 29 14:46:24 2016
New Revision: 288197

URL: http://llvm.org/viewvc/llvm-project?rev=288197&view=rev
Log:
Don't declare IsEnumDeclComplete as extern

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.

Modified:
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=288197&r1=288196&r2=288197&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Tue Nov 29 14:46:24 2016
@@ -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))




More information about the cfe-commits mailing list