[clang] [clang][Preprocessor] Improve error message for comma in #if and #embed (PR #246129)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 25 15:51:49 PST 2026
================
@@ -625,6 +625,8 @@ def err_pp_expected_value_in_expr : Error<"expected value in expression">;
def err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">;
def err_pp_expected_eol : Error<
"expected end of line in preprocessor expression">;
+def err_pp_comma_in_constant_expr : Error<
+ "comma operator is not allowed in a preprocessor expression">;
----------------
Endilll wrote:
I'd go further and drop "top-level", because I don't understand its purpose in this context
https://github.com/llvm/llvm-project/pull/246129
More information about the cfe-commits
mailing list