[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 3 13:23:18 PDT 2025


================
@@ -0,0 +1,146 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wconditional-scope -DTEST_1 %s
----------------
arrowten wrote:

If anyone can help with different types of testcases, I would appreciate that. 

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


More information about the cfe-commits mailing list