r319601 - Move comment back to being next to the code it's a comment for.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 1 16:55:48 PST 2017
Author: rsmith
Date: Fri Dec 1 16:55:48 2017
New Revision: 319601
URL: http://llvm.org/viewvc/llvm-project?rev=319601&view=rev
Log:
Move comment back to being next to the code it's a comment for.
Modified:
cfe/trunk/lib/AST/Decl.cpp
Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=319601&r1=319600&r2=319601&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Fri Dec 1 16:55:48 2017
@@ -1974,6 +1974,9 @@ VarDecl *VarDecl::getCanonicalDecl() { r
VarDecl::DefinitionKind
VarDecl::isThisDeclarationADefinition(ASTContext &C) const {
+ if (isThisDeclarationADemotedDefinition())
+ return DeclarationOnly;
+
// C++ [basic.def]p2:
// A declaration is a definition unless [...] it contains the 'extern'
// specifier or a linkage-specification and neither an initializer [...],
@@ -1987,9 +1990,6 @@ VarDecl::isThisDeclarationADefinition(AS
//
// FIXME: How do you declare (but not define) a partial specialization of
// a static data member template outside the containing class?
- if (isThisDeclarationADemotedDefinition())
- return DeclarationOnly;
-
if (isStaticDataMember()) {
if (isOutOfLine() &&
!(getCanonicalDecl()->isInline() &&
More information about the cfe-commits
mailing list