[clang] Disable -fdollars-in-identifiers by default (PR #135407)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 14 22:24:02 PDT 2025


================
@@ -4036,6 +4036,7 @@ LangOptions getFormattingLangOpts(const FormatStyle &Style) {
   LangOpts.MicrosoftExt = 1;    // To get kw___try, kw___finally.
   LangOpts.DeclSpecKeyword = 1; // To get __declspec.
   LangOpts.C99 = 1; // To get kw_restrict for non-underscore-prefixed restrict.
+  LangOpts.DollarIdents = 1; // For $identifier$ testing.
----------------
owenca wrote:

Should the comment be something like `To allow $ in identifiers.`?

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


More information about the cfe-commits mailing list