]> granicus.if.org Git - clang/commitdiff
ArrayRef-icize the function arguments.
authorBill Wendling <isanbard@gmail.com>
Wed, 22 Feb 2012 09:38:11 +0000 (09:38 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 22 Feb 2012 09:38:11 +0000 (09:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151151 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h
lib/Sema/JumpDiagnostics.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaTemplateVariadic.cpp

index d908937b631d250025a9ee9fdab0d3d9b1a50e20..19db26dd5a89bf274faa152657245f31819a3205 100644 (file)
@@ -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.
index 54013a8e9c7d1f085a17173de1e6a7460f436184..9a1d023fec6be1eeeab75d9a06f7e0763ad745d5 100644 (file)
@@ -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)
index fa66a5a17918bb61345c8a11ac4a86f2c1b33272..f2051e92981439358434465bb101d75f845a01d3 100644 (file)
@@ -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) {
index 972f2236bd4f9004eb5c3122bd901d5c8a431823..15a308575a0bec478ffcbfee8e9226619905009f 100644 (file)
@@ -158,7 +158,7 @@ namespace {
 void
 Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc,
                                        UnexpandedParameterPackContext UPPC,
-             const SmallVectorImpl<UnexpandedParameterPack> &Unexpanded) {
+                                 ArrayRef<UnexpandedParameterPack> Unexpanded) {
   if (Unexpanded.empty())
     return;