[clang] [clang] Allow `$` in identifiers during preprocessing (PR #200614)

Matthias Wippich via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 05:52:37 PDT 2026


================
@@ -0,0 +1,27 @@
+// RUN: %clang_cc1 %s -verify -fsyntax-only -fno-dollars-in-identifiers
----------------
Tsche wrote:

It occurred to me that `-fno-dollars-in-macros` can result in rather odd behavior when _not_ combined with `-fno-dollars-in-identifiers`.

Is it possible to have `-fno-dollars-in-macros` imply `-fno-dollars-in-identifiers` or would that be weird?

I'll add tests for the combination of both - that should yield the same diagnostics as before this change :)

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


More information about the cfe-commits mailing list