[all-commits] [llvm/llvm-project] 5018e1: [clang][parser] Allow GNU-style attributes in expl...

tbaederr via All-commits all-commits at lists.llvm.org
Wed Mar 31 07:46:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5018e15fdfda855f130cdb78acb88540046853af
      https://github.com/llvm/llvm-project/commit/5018e15fdfda855f130cdb78acb88540046853af
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2021-03-31 (Wed, 31 Mar 2021)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/test/Parser/cxx0x-attributes.cpp

  Log Message:
  -----------
  [clang][parser] Allow GNU-style attributes in explicit template...

... instantiations

They are currently not being diagnosed because ProhibitAttributes() does
not handle attribute lists with an invalid source range. But once it
does, we need to allow GNU attributes in this place.

Additionally, start optionally diagnosing empty attr lists in
ProhibitCXX11Attributes(), since ProhibitAttribute() does it.

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




More information about the All-commits mailing list