forked from OSchip/llvm-project
Move comment back to being next to the code it's a comment for.
llvm-svn: 319601
This commit is contained in:
parent
2278826c60
commit
a22d9a5c51
|
@ -1974,6 +1974,9 @@ VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); }
|
|||
|
||||
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(ASTContext &C) const {
|
|||
//
|
||||
// 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() &&
|
||||
|
|
Loading…
Reference in New Issue