diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-20 20:26:09 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-20 20:26:09 +0000 |
commit | 9cacbabd33eea88e9c416e4bc8abf58eebf5589d (patch) | |
tree | 74755c65f472ae14b820aa71f77069e69a1a91c4 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 8ff1610f06646b0f62060df06c194214bd992260 (diff) | |
download | llvm-9cacbabd33eea88e9c416e4bc8abf58eebf5589d.zip llvm-9cacbabd33eea88e9c416e4bc8abf58eebf5589d.tar.gz llvm-9cacbabd33eea88e9c416e4bc8abf58eebf5589d.tar.bz2 |
Rename FunctionProtoType accessors from 'arguments' to 'parameters'
Fix a perennial source of confusion in the clang type system: Declarations and
function prototypes have parameters to which arguments are supplied, so calling
these 'arguments' was a stretch even in C mode, let alone C++ where default
arguments, templates and overloading make the distinction important to get
right.
Readability win across the board, especially in the casting, ADL and
overloading implementations which make a lot more sense at a glance now.
Will keep an eye on the builders and update dependent projects shortly.
No functional change.
llvm-svn: 199686
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 22bb6c3..092eddc 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2516,11 +2516,11 @@ public: bool ForceColumnInfo = false) { if (CallArgTypeInfo) { EmitCallArgs(Args, CallArgTypeInfo->isVariadic(), - CallArgTypeInfo->arg_type_begin(), - CallArgTypeInfo->arg_type_end(), ArgBeg, ArgEnd, + CallArgTypeInfo->param_type_begin(), + CallArgTypeInfo->param_type_end(), ArgBeg, ArgEnd, ForceColumnInfo); } else { - // T::arg_type_iterator might not have a default ctor. + // T::param_type_iterator might not have a default ctor. const QualType *NoIter = 0; EmitCallArgs(Args, /*AllowExtraArguments=*/true, NoIter, NoIter, ArgBeg, ArgEnd, ForceColumnInfo); |