r276073 - Fix r276069: add default argument for new parameter

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 19 17:57:56 PDT 2016


Author: hubert.reinterpretcast
Date: Tue Jul 19 19:57:56 2016
New Revision: 276073

URL: http://llvm.org/viewvc/llvm-project?rev=276073&view=rev
Log:
Fix r276069: add default argument for new parameter

Modified:
    cfe/trunk/include/clang/AST/DeclTemplate.h

Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=276073&r1=276072&r2=276073&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Tue Jul 19 19:57:56 2016
@@ -80,12 +80,13 @@ protected:
                         Expr *RequiresClause);
 
 public:
+  // FIXME: remove default argument for RequiresClause
   static TemplateParameterList *Create(const ASTContext &C,
                                        SourceLocation TemplateLoc,
                                        SourceLocation LAngleLoc,
                                        ArrayRef<NamedDecl *> Params,
                                        SourceLocation RAngleLoc,
-                                       Expr *RequiresClause);
+                                       Expr *RequiresClause = nullptr);
 
   /// \brief Iterates through the template parameters in this list.
   typedef NamedDecl** iterator;




More information about the cfe-commits mailing list