[PATCH] D149280: [clang-tidy] Add modernize-printf-to-std-print check

Mike Crowe via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 25 13:48:25 PDT 2023


mikecrowe marked an inline comment as done.
mikecrowe added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp:9-15
+#include <cstddef>
+#include <cstdint>
+#include <cstdio>
+// CHECK-FIXES: #include <print>
+#include <inttypes.h>
+#include <string.h>
+#include <string>
----------------
PiotrZSL wrote:
> Those includes need to be removed. We cannot use system includes, some dummy one can be used only.
I believe that `<inttypes.h>` is the only one that isn't present in `test/clang-tidy/checkers/Inputs/Headers/`. Hopefully adding it will have been sufficient.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149280



More information about the cfe-commits mailing list