[clang] [C] Modify -Wdefault-const-init (PR #137961)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 30 06:22:58 PDT 2025


================
@@ -1,28 +1,23 @@
-// RUN: %clang_cc1 -fsyntax-only -verify=c,unsafe -Wdefault-const-init %s
-// RUN: %clang_cc1 -fsyntax-only -verify=c,unsafe -Wc++-compat %s
-// RUN: %clang_cc1 -fsyntax-only -verify=unsafe %s
-// RUN: %clang_cc1 -fsyntax-only -verify=c -Wdefault-const-init -Wno-default-const-init-unsafe %s
-// RUN: %clang_cc1 -fsyntax-only -verify=good -Wno-default-const-init-unsafe %s
-// RUN: %clang_cc1 -fsyntax-only -verify=cxx -x c++ %s
-// good-no-diagnostics
+
----------------
Fznamznon wrote:

An empty line in the beginning is kind of strange
```suggestion
```

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


More information about the cfe-commits mailing list