Refactoring of template-argument checking code to reduce nesting,
increase sanity. No intended functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86866 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index b2e0751..6ebdf88 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -2585,6 +2585,17 @@
                                                 SourceLocation TemplateLoc,
                                                 Declarator &D);
     
+  bool CheckTemplateArgument(NamedDecl *Param,
+                             const TemplateArgumentLoc &Arg,
+                             unsigned ArgIdx,
+                             TemplateDecl *Template,
+                             SourceLocation TemplateLoc,
+                             SourceLocation LAngleLoc,
+                             const TemplateArgumentLoc *TemplateArgs,
+                             unsigned NumTemplateArgs,
+                             SourceLocation RAngleLoc,
+                             TemplateArgumentListBuilder &Converted);
+  
   bool CheckTemplateArgumentList(TemplateDecl *Template,
                                  SourceLocation TemplateLoc,
                                  SourceLocation LAngleLoc,