diff options
author | Alp Toker <alp@nuanti.com> | 2014-02-26 22:27:52 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-02-26 22:27:52 +0000 |
commit | 6f83a9e0dcff8f63f19c3c7ba14656d75fcee250 (patch) | |
tree | 1a74be2f6b88f3c65d5717a06b779f38b236c8ba /lib/Sema/DeclSpec.cpp | |
parent | 98cafc64641be338090ca73ad69ba59702dcbc50 (diff) |
argument -> parameter terminology fixes for FunctionTypeInfo
This is a continuation of r199686.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/DeclSpec.cpp')
-rw-r--r-- | lib/Sema/DeclSpec.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/Sema/DeclSpec.cpp b/lib/Sema/DeclSpec.cpp index 0b512ccf1c..5c2006f6e9 100644 --- a/lib/Sema/DeclSpec.cpp +++ b/lib/Sema/DeclSpec.cpp @@ -149,8 +149,8 @@ CXXScopeSpec::getWithLocInContext(ASTContext &Context) const { DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, bool isAmbiguous, SourceLocation LParenLoc, - ParamInfo *ArgInfo, - unsigned NumArgs, + ParamInfo *Params, + unsigned NumParams, SourceLocation EllipsisLoc, SourceLocation RParenLoc, unsigned TypeQuals, @@ -185,10 +185,10 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, I.Fun.LParenLoc = LParenLoc.getRawEncoding(); I.Fun.EllipsisLoc = EllipsisLoc.getRawEncoding(); I.Fun.RParenLoc = RParenLoc.getRawEncoding(); - I.Fun.DeleteArgInfo = false; + I.Fun.DeleteParams = false; I.Fun.TypeQuals = TypeQuals; - I.Fun.NumArgs = NumArgs; - I.Fun.ArgInfo = 0; + I.Fun.NumParams = NumParams; + I.Fun.Params = 0; I.Fun.RefQualifierIsLValueRef = RefQualifierIsLvalueRef; I.Fun.RefQualifierLoc = RefQualifierLoc.getRawEncoding(); I.Fun.ConstQualifierLoc = ConstQualifierLoc.getRawEncoding(); @@ -203,22 +203,22 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, TrailingReturnType.isInvalid(); I.Fun.TrailingReturnType = TrailingReturnType.get(); - // new[] an argument array if needed. - if (NumArgs) { + // new[] a parameter array if needed. + if (NumParams) { // If the 'InlineParams' in Declarator is unused and big enough, put our // parameter list there (in an effort to avoid new/delete traffic). If it // is already used (consider a function returning a function pointer) or too - // small (function taking too many arguments), go to the heap. + // small (function with too many parameters), go to the heap. if (!TheDeclarator.InlineParamsUsed && - NumArgs <= llvm::array_lengthof(TheDeclarator.InlineParams)) { - I.Fun.ArgInfo = TheDeclarator.InlineParams; - I.Fun.DeleteArgInfo = false; + NumParams <= llvm::array_lengthof(TheDeclarator.InlineParams)) { + I.Fun.Params = TheDeclarator.InlineParams; + I.Fun.DeleteParams = false; TheDeclarator.InlineParamsUsed = true; } else { - I.Fun.ArgInfo = new DeclaratorChunk::ParamInfo[NumArgs]; - I.Fun.DeleteArgInfo = true; + I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; + I.Fun.DeleteParams = true; } - memcpy(I.Fun.ArgInfo, ArgInfo, sizeof(ArgInfo[0])*NumArgs); + memcpy(I.Fun.Params, Params, sizeof(Params[0]) * NumParams); } // Check what exception specification information we should actually store. |