[clang] [clang] Evaluate constant initializers in C as well (PR #121950)

2025-01-09 Thread Timm Baeder via cfe-commits
tbaederr wrote: This makes no sense, we're already checking for unversioned c++ above. https://github.com/llvm/llvm-project/pull/121950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Evaluate constant initializers in C as well (PR #121950)

2025-01-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/121950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Evaluate constant initializers in C as well (PR #121950)

2025-01-07 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I would love to see tests that highlight any differences between C and C++ in this area. https://github.com/llvm/llvm-project/pull/121950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [clang] Evaluate constant initializers in C as well (PR #121950)

2025-01-07 Thread via cfe-commits
cor3ntin wrote: Can you add a description/ test/changelog/C23 wording quote? https://github.com/llvm/llvm-project/pull/121950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Evaluate constant initializers in C as well (PR #121950)

2025-01-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/121950.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaDecl.cpp (+2-1) ``diff diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/li

[clang] [clang] Evaluate constant initializers in C as well (PR #121950)

2025-01-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/121950 None >From 87176299fcd501ec6f440e61e224b30854920e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 7 Jan 2025 16:18:56 +0100 Subject: [PATCH] [clang] Evaluate constant initializers in