[PATCH] D46293: [clang-tidy/google-runtime-int] Allow passing non-bitwidth types to printf()-style APIs

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 1 07:52:04 PDT 2018


benhamilton marked 2 inline comments as done.
benhamilton added a comment.

Thanks for the review. Added another test.



================
Comment at: test/clang-tidy/google-runtime-int.cpp:77
+__attribute__((__format__ (__printf__, 1, 2)))
+void myprintf(const char* s, ...);
+
----------------
alexfh wrote:
> Please add another function similar to this one, but without the attribute and verify that the check fires on arguments to that function.
Sure, done.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D46293





More information about the cfe-commits mailing list