From: Reid Kleckner Date: Tue, 29 Nov 2016 20:46:24 +0000 (+0000) Subject: Don't declare IsEnumDeclComplete as extern X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9322d0d47b7444e844d107f6dcf3bb3ee07287fc;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288197 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index b4651da490..7ff9cb274a 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -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(CanonicalType))