]> granicus.if.org Git - clang/commitdiff
Fix clang-tidy warning (argument comments don't match parameter names).
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Apr 2014 15:16:58 +0000 (15:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Apr 2014 15:16:58 +0000 (15:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205715 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/DeclSpec.h
lib/Sema/SemaDecl.cpp

index 2cd10da718025eefd566f07e1f876694783036a2..948fb9cbfdb20348924cb36b7d9618535d44aa43 100644 (file)
@@ -1414,8 +1414,8 @@ struct DeclaratorChunk {
 
   /// DeclaratorChunk::getFunction - Return a DeclaratorChunk for a function.
   /// "TheDeclarator" is the declarator that this will be added to.
-  static DeclaratorChunk getFunction(bool hasProto,
-                                     bool isAmbiguous,
+  static DeclaratorChunk getFunction(bool HasProto,
+                                     bool IsAmbiguous,
                                      SourceLocation LParenLoc,
                                      ParamInfo *Params, unsigned NumParams,
                                      SourceLocation EllipsisLoc,
index 43d855c0cb96f97125f5cc249378cf43546e565e..6a013a713810ff2a8c8708d5f4187a7a94d789a6 100644 (file)
@@ -10088,9 +10088,9 @@ NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
   Declarator D(DS, Declarator::BlockContext);
   D.AddTypeInfo(DeclaratorChunk::getFunction(/*HasProto=*/false,
                                              /*IsAmbiguous=*/false,
-                                             /*RParenLoc=*/NoLoc,
-                                             /*ArgInfo=*/0,
-                                             /*NumArgs=*/0,
+                                             /*LParenLoc=*/NoLoc,
+                                             /*Params=*/0,
+                                             /*NumParams=*/0,
                                              /*EllipsisLoc=*/NoLoc,
                                              /*RParenLoc=*/NoLoc,
                                              /*TypeQuals=*/0,