aaron.ballman added inline comments.

================
Comment at: 
clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeVarargCheck.cpp:21
 
+// FIXME: Add any more builtin variadics that shouldn't trigger this
+static constexpr StringRef AllowedVariadics[] = {
----------------
njames93 wrote:
> aaron.ballman wrote:
> > How would we know which builtins should or should not trigger this? Can we 
> > add that information to this comment (or, better yet, just fix the fixme up 
> > front)?
> Good point, its more a case that I don't know all the variadic builtins clang 
> supports. Those ones I included are just the ones you find in the gcc 
> documentation. Shall I just remove the Fixme completely, If there is another 
> one that's been missed we can address that later
Taking a look at Builtins.def shows quite a few more that likely should be 
added to the list. I think we should probably have the initial commit covering 
anything that's a C standard library function/macro that ends with "." in its 
builtin type signature where the C API isn't variadic. For instance, 
`__builtin_isfinite`, `__builtin_isinf`, etc. I'm fine if we don't vet every 
builtin we support (that's a large amount of work), but we should be able to 
cover the most common cases where there's a specification to compare against.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80887



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to