forked from OSchip/llvm-project
A bit of clean up based on peer's feedback...
llvm-svn: 187784
This commit is contained in:
parent
cf969eadaf
commit
833b05a273
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue