]> granicus.if.org Git - clang/commitdiff
Document ObjCMethodDecl::setMethodParams.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 5 Oct 2011 21:34:09 +0000 (21:34 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 5 Oct 2011 21:34:09 +0000 (21:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141216 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index c05e4110e68e75187027c59053c5489d27d98e5a..849697a954d4e7b42b031d051a5b06147319d679 100644 (file)
@@ -332,9 +332,13 @@ public:
     return param_begin() + getSelector().getNumArgs(); 
   }
 
+  /// \brief Sets the method's parameters and selector source locations.
+  /// If the method is implicit (not coming from source) \arg SelLocs is
+  /// ignored.
   void setMethodParams(ASTContext &C,
                        ArrayRef<ParmVarDecl*> Params,
-                       ArrayRef<SourceLocation> SelLocs);
+                       ArrayRef<SourceLocation> SelLocs =
+                           ArrayRef<SourceLocation>());
 
   // Iterator access to parameter types.
   typedef std::const_mem_fun_t<QualType, ParmVarDecl> deref_fun;