[clang] [clang][lex] Fix lexing malformed pragma within include directive (PR #138165)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri May 2 09:56:57 PDT 2025


================
@@ -535,7 +535,8 @@ Bug Fixes in This Version
 - Fixed visibility calculation for template functions. (#GH103477)
 - Fixed a bug where an attribute before a ``pragma clang attribute`` or
   ``pragma clang __debug`` would cause an assertion. Instead, this now diagnoses
-  the invalid attribute location appropriately.  (#GH137861)
+  the invalid attribute location appropriately. (#GH137861)
+- Fixed a crash when a malformed ``_Pragma`` directive appears as part of an ``#include`` directive. (#GH138094)
----------------
AaronBallman wrote:

```suggestion
- Fixed a crash when a malformed ``_Pragma`` directive appears as part of an
  ``#include`` directive. (#GH138094)
```
Wrapping to 80-col limits

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


More information about the cfe-commits mailing list