[all-commits] [llvm/llvm-project] 71ad30: [Clang] prevent crash on unterminated __has_embed ...

Oleksandr T. via All-commits all-commits at lists.llvm.org
Wed Oct 15 09:00:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71ad307d231c8048327c7a74c1bb38f0b86fde15
      https://github.com/llvm/llvm-project/commit/71ad307d231c8048327c7a74c1bb38f0b86fde15
  Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
  Date:   2025-10-15 (Wed, 15 Oct 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Lex/PPDirectives.cpp
    M clang/lib/Lex/PPMacroExpansion.cpp
    M clang/test/Preprocessor/embed___has_embed_parsing_errors.c

  Log Message:
  -----------
  [Clang] prevent crash on unterminated __has_embed (#163107)

Fixes #162953

--- 

This PR addresses the issue of Clang crashing on unterminated
`__has_embed` by guarding all `DiscardUntilEndOfDirective` paths with
the contextual end token and diagnosing the missing `)` before reporting
_unknown_ parameters.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list