A bit of clean up based on peer's feedback...

llvm-svn: 187784
This commit is contained in:
Larisse Voufo 2013-08-06 07:33:00 +00:00
parent cf969eadaf
commit 833b05a273
3 changed files with 7 additions and 8 deletions

View File

@ -1806,8 +1806,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(Declarator &D,
SkipUntil(tok::semi, true, true);
return 0;
}
if (VarTemplateDecl *VT =
ThisDecl ? dyn_cast<VarTemplateDecl>(ThisDecl) : 0)
if (VarTemplateDecl *VT = dyn_cast_or_null<VarTemplateDecl>(ThisDecl))
// Re-direct this decl to refer to the templated decl so that we can
// initialize it.
ThisDecl = VT->getTemplatedDecl();

View File

@ -2281,11 +2281,11 @@ static bool CheckTemplateSpecializationScope(Sema &S, NamedDecl *Specialized,
static TemplateSpecializationKind getTemplateSpecializationKind(Decl *D);
/*
/// \brief Check the new variable specialization against the parsed input.
///
/// FIXME: Model this against function specializations where
/// a new function declaration is checked against the specialization
/// as candidate for redefinition... (?)
// Check the new variable specialization against the parsed input.
//
// FIXME: Model this against function specializations where
// a new function declaration is checked against the specialization
// as candidate for redefinition... (?)
static bool CheckVariableTemplateSpecializationType() {
if (ExpectedType is undeduced && ParsedType is not undeduced)

View File

@ -2246,7 +2246,7 @@ FinishTemplateArgumentDeduction(Sema &S,
}
/// \brief Perform template argument deduction to determine whether
/// the given template arguments match the given variable template
/// the given template arguments match the given class template
/// partial specialization per C++ [temp.class.spec.match].
Sema::TemplateDeductionResult
Sema::DeduceTemplateArguments(ClassTemplatePartialSpecializationDecl *Partial,