[all-commits] [llvm/llvm-project] cbec90: [clang] fix skipped parsing of late parsed attributes

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Thu Aug 14 02:01:50 PDT 2025


  Branch: refs/heads/users/mizvekov/fix-parsing-late-parsed-attrs-skip
  Home:   https://github.com/llvm/llvm-project
  Commit: cbec90109321d2f0fe3573e44a1098dba6d38fff
      https://github.com/llvm/llvm-project/commit/cbec90109321d2f0fe3573e44a1098dba6d38fff
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/Parser.cpp
    M clang/test/Frontend/skip-function-bodies.cpp
    A clang/test/Parser/diagnose_if.cpp

  Log Message:
  -----------
  [clang] fix skipped parsing of late parsed attributes

Fixes some situations where late parsed attributes on functions
are skipped, such as:

* With function try blocks.
* Error recovery when parsing out-of-line constructor definitions
* When skipping parsing of function bodies with -skip-function-bodies

Also fixes memory leaks in those situations.

Fixes https://github.com/llvm/llvm-project/issues/153551



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