[all-commits] [llvm/llvm-project] f9c2f8: [Clang] Fix unknown type attributes diagnosed twic...

Jun Zhang via All-commits all-commits at lists.llvm.org
Tue Apr 12 06:12:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9c2f821d71b7bbb2544a489b7798bd173ea8907
      https://github.com/llvm/llvm-project/commit/f9c2f821d71b7bbb2544a489b7798bd173ea8907
  Author: Jun Zhang <jun at junz.org>
  Date:   2022-04-12 (Tue, 12 Apr 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/Parser.cpp
    A clang/test/SemaCXX/warn-once-on-unknown-attr.cpp

  Log Message:
  -----------
  [Clang] Fix unknown type attributes diagnosed twice with [[]] spelling

Don't warn on unknown type attributes in Parser::ProhibitCXX11Attributes
for most cases, but left the diagnostic to the later checks.
module declaration and module import declaration are special cases.

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

Differential Revision: https://reviews.llvm.org/D123447




More information about the All-commits mailing list