Decl.cpp (280031) | Decl.cpp (283526) |
---|---|
1//===--- Decl.cpp - Declaration AST Node Implementation -------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 2660 unchanged lines hidden (view full) --- 2669/// would return true for this FunctionDecl. 2670bool FunctionDecl::isMSExternInline() const { 2671 assert(isInlined() && "expected to get called on an inlined function!"); 2672 2673 const ASTContext &Context = getASTContext(); 2674 if (!Context.getLangOpts().MSVCCompat && !hasAttr<DLLExportAttr>()) 2675 return false; 2676 | 1//===--- Decl.cpp - Declaration AST Node Implementation -------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 2660 unchanged lines hidden (view full) --- 2669/// would return true for this FunctionDecl. 2670bool FunctionDecl::isMSExternInline() const { 2671 assert(isInlined() && "expected to get called on an inlined function!"); 2672 2673 const ASTContext &Context = getASTContext(); 2674 if (!Context.getLangOpts().MSVCCompat && !hasAttr<DLLExportAttr>()) 2675 return false; 2676 |
2677 for (const FunctionDecl *FD = this; FD; FD = FD->getPreviousDecl()) | 2677 for (const FunctionDecl *FD = getMostRecentDecl(); FD; 2678 FD = FD->getPreviousDecl()) |
2678 if (FD->getStorageClass() == SC_Extern) 2679 return true; 2680 2681 return false; 2682} 2683 2684static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { 2685 if (Redecl->getStorageClass() != SC_Extern) --- 1335 unchanged lines hidden --- | 2679 if (FD->getStorageClass() == SC_Extern) 2680 return true; 2681 2682 return false; 2683} 2684 2685static bool redeclForcesDefMSVC(const FunctionDecl *Redecl) { 2686 if (Redecl->getStorageClass() != SC_Extern) --- 1335 unchanged lines hidden --- |