[clang] [clang][C23] Preserve thread_local spelling in diagnostics (PR #236740)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 09:56:22 PST 2026


================
@@ -400,6 +400,8 @@ class DeclSpec {
   LLVM_PREFERRED_TYPE(TSCS)
   unsigned ThreadStorageClassSpec : 2;
   LLVM_PREFERRED_TYPE(bool)
+  unsigned C23ThreadLocalSpelling : 1;
----------------
AaronBallman wrote:

Quite possibly. Also, this feels like one of those situations where we don't like the QoI but the cure may be worse than the disease and it might make sense to just leave things as-is for now.

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


More information about the cfe-commits mailing list