forked from OSchip/llvm-project
parent
f1a3fcac0d
commit
8ac06afa9b
|
@ -4496,7 +4496,7 @@ public:
|
|||
/// \param Unexpanded the set of unexpanded parameter packs.
|
||||
void DiagnoseUnexpandedParameterPacks(SourceLocation Loc,
|
||||
UnexpandedParameterPackContext UPPC,
|
||||
const SmallVectorImpl<UnexpandedParameterPack> &Unexpanded);
|
||||
ArrayRef<UnexpandedParameterPack> Unexpanded);
|
||||
|
||||
/// \brief If the given type contains an unexpanded parameter pack,
|
||||
/// diagnose the error.
|
||||
|
|
|
@ -74,7 +74,7 @@ private:
|
|||
|
||||
void VerifyJumps();
|
||||
void VerifyIndirectJumps();
|
||||
void NoteJumpIntoScopes(const SmallVectorImpl<unsigned> &ToScopes);
|
||||
void NoteJumpIntoScopes(ArrayRef<unsigned> ToScopes);
|
||||
void DiagnoseIndirectJump(IndirectGotoStmt *IG, unsigned IGScope,
|
||||
LabelDecl *Target, unsigned TargetScope);
|
||||
void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc,
|
||||
|
@ -669,8 +669,7 @@ static void DiagnoseIndirectJumpStmt(Sema &S, IndirectGotoStmt *Jump,
|
|||
}
|
||||
|
||||
/// Produce note diagnostics for a jump into a protected scope.
|
||||
void JumpScopeChecker::NoteJumpIntoScopes(
|
||||
const SmallVectorImpl<unsigned> &ToScopes) {
|
||||
void JumpScopeChecker::NoteJumpIntoScopes(ArrayRef<unsigned> ToScopes) {
|
||||
assert(!ToScopes.empty());
|
||||
for (unsigned I = 0, E = ToScopes.size(); I != E; ++I)
|
||||
if (Scopes[ToScopes[I]].InDiag)
|
||||
|
|
|
@ -548,7 +548,7 @@ static TemplateParameter makeTemplateParameter(Decl *D) {
|
|||
/// arguments in a set of argument packs.
|
||||
static void PrepareArgumentPackDeduction(Sema &S,
|
||||
SmallVectorImpl<DeducedTemplateArgument> &Deduced,
|
||||
const SmallVectorImpl<unsigned> &PackIndices,
|
||||
ArrayRef<unsigned> PackIndices,
|
||||
SmallVectorImpl<DeducedTemplateArgument> &SavedPacks,
|
||||
SmallVectorImpl<
|
||||
SmallVector<DeducedTemplateArgument, 4> > &NewlyDeducedPacks) {
|
||||
|
|
|
@ -158,7 +158,7 @@ namespace {
|
|||
void
|
||||
Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc,
|
||||
UnexpandedParameterPackContext UPPC,
|
||||
const SmallVectorImpl<UnexpandedParameterPack> &Unexpanded) {
|
||||
ArrayRef<UnexpandedParameterPack> Unexpanded) {
|
||||
if (Unexpanded.empty())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue