diff options
author | Nicolas Manichon <nmanichon@gmail.com> | 2019-12-03 08:21:55 -0500 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2019-12-03 08:21:55 -0500 |
commit | cc3c935da24c8ebe4fd92638574462b762d92335 (patch) | |
tree | c3f8b9c35bf243a3b4e0e6f262a5e9d9f51f0a28 /clang/lib/AST/ASTContext.cpp | |
parent | aedeab7f85caaa0946152e5d73e37455267019bb (diff) | |
download | bcm5719-llvm-cc3c935da24c8ebe4fd92638574462b762d92335.tar.gz bcm5719-llvm-cc3c935da24c8ebe4fd92638574462b762d92335.zip |
Add FunctionDecl::getParameterSourceRange()
This source range covers the list of parameters of the function declaration,
including the ellipsis for a variadic function.
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index abfa33d0df0..eb02a61b234 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -3875,10 +3875,11 @@ QualType ASTContext::getFunctionTypeInternal( auto ESH = FunctionProtoType::getExceptionSpecSize( EPI.ExceptionSpec.Type, EPI.ExceptionSpec.Exceptions.size()); size_t Size = FunctionProtoType::totalSizeToAlloc< - QualType, FunctionType::FunctionTypeExtraBitfields, + QualType, SourceLocation, FunctionType::FunctionTypeExtraBitfields, FunctionType::ExceptionType, Expr *, FunctionDecl *, FunctionProtoType::ExtParameterInfo, Qualifiers>( - NumArgs, FunctionProtoType::hasExtraBitfields(EPI.ExceptionSpec.Type), + NumArgs, EPI.Variadic, + FunctionProtoType::hasExtraBitfields(EPI.ExceptionSpec.Type), ESH.NumExceptionType, ESH.NumExprPtr, ESH.NumFunctionDeclPtr, EPI.ExtParameterInfos ? NumArgs : 0, EPI.TypeQuals.hasNonFastQualifiers() ? 1 : 0); |