[all-commits] [llvm/llvm-project] 30a5d5: [C23] AST equivalence of attributes (#151196)

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Jul 29 11:09:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30a5d569b2102bba1cfb5d253bd73ec2ebce7ee0
      https://github.com/llvm/llvm-project/commit/30a5d569b2102bba1cfb5d253bd73ec2ebce7ee0
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M clang/lib/AST/ASTStructuralEquivalence.cpp
    M clang/test/ASTMerge/enum/test2.c

  Log Message:
  -----------
  [C23] AST equivalence of attributes (#151196)

Implicitly declared types (like __NSConstantString_tag, etc) will be
declared with visibility attributes. This causes problems when merging
ASTs because we currently reject declaration merging for declarations
with attributes.

This relaxes that restriction somewhat; implicit declarations can now
have attributes when merging; we assume that if the compiler generated
it, it's fine.



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