[PATCH] D130857: [Clang] Plan 9 member resolution

Keegan Saunders via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 31 15:16:12 PDT 2022


ksaunders created this revision.
ksaunders added a reviewer: rsmith.
ksaunders added a project: clang.
Herald added a project: All.
ksaunders requested review of this revision.
Herald added a subscriber: cfe-commits.

This patch implements the Plan 9 member resolution algorithm which is described referenced in the original revision: https://reviews.llvm.org/D127462. The test code is illustrative as to what is considered valid, as it was derived from samples compiled using the Plan 9 C compiler.

It is not clear what the policy on issuing diagnostics is for extensions usage, so there is a warning emitted for usage of duplicated members (which is a Plan 9 extension). However this might not be a good idea, as there could be potentially a large number of warnings emitted, as this is used throughout headers Plan 9 C.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130857

Files:
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/AST/Expr.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/lib/Sema/SemaLookup.cpp
  clang/test/Sema/2c-anon-record.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130857.448889.patch
Type: text/x-patch
Size: 10928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220731/9fe7ab87/attachment-0001.bin>


More information about the cfe-commits mailing list