[PATCH] D63276: [AST] Add FunctionDecl::getParametersSourceRange()

Bruno Ricci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 27 09:38:00 PDT 2019


riccibruno added inline comments.


================
Comment at: clang/include/clang/AST/Type.h:4048
+    return *getTrailingObjects<SourceLocation>();
+  }
+
----------------
And what if there is no ellipsis ? Shouldn't you do something like `return isVariadic() ? *getTrailingObjects<SourceLocation>() : SourceLocation();` instead ?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63276/new/

https://reviews.llvm.org/D63276





More information about the cfe-commits mailing list