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

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 30 16:03:28 PDT 2018


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG with one comment. Thank you for the fix!



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


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D46293





More information about the cfe-commits mailing list