[clang] Reapply [Clang] Implement P2843R3 - Preprocessing is never undefined (PR #196989)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Fri May 15 08:26:32 PDT 2026


================
@@ -799,7 +802,7 @@ def err_pp_illegal_floating_literal : Error<
   "floating point literal in preprocessor expression">;
 def err_pp_line_requires_integer : Error<
   "#line directive requires a positive integer argument">;
-def ext_pp_line_zero : Extension<
+def warn_pp_line_zero : ExtWarn<
   "#line directive with zero argument is a GNU extension">,
----------------
cor3ntin wrote:

There isn't any reason to change that

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


More information about the cfe-commits mailing list