[clang] [clang] Catch missing format attributes (PR #105479)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 9 03:58:02 PDT 2024


================
@@ -0,0 +1,251 @@
+// RUN: %clang_cc1 -fsyntax-only -verify=expected,c_diagnostics -Wmissing-format-attribute %s
+// RUN: %clang_cc1 -fsyntax-only -Wmissing-format-attribute -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
+// RUN: %clang_cc1 -fsyntax-only -x c++ -verify=expected,cpp_diagnostics -Wmissing-format-attribute %s
+// RUN: %clang_cc1 -fsyntax-only -x c++ -verify=expected,cpp_diagnostics -std=c++2b -Wmissing-format-attribute %s
+// RUN: %clang_cc1 -fsyntax-only -x c++ -verify=expected,cpp_diagnostics -std=c++23 -Wmissing-format-attribute %s
----------------
Endilll wrote:

Yes, `c++2b` and `c++23` refer to the same language mode. I think when `c++23` was added, all uses of `c++2b` in the tests were replaced. We should be consistent with that.

https://github.com/llvm/llvm-project/pull/105479


More information about the cfe-commits mailing list