[all-commits] [llvm/llvm-project] cecd84: [Clang][Parser] Accept GNU attributes preceding C+...

elizabethandrews via All-commits all-commits at lists.llvm.org
Fri Jun 2 08:11:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cecd8471e4991b4bea5d2b38a3758cafdb1cbe29
      https://github.com/llvm/llvm-project/commit/cecd8471e4991b4bea5d2b38a3758cafdb1cbe29
  Author: Elizabeth Andrews <elizabeth.andrews at intel.com>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseTemplate.cpp
    M clang/test/Parser/attr-order.cpp

  Log Message:
  -----------
  [Clang][Parser] Accept GNU attributes preceding C++ attributes on templates

Clang was rejecting valid code where GNU style attributes preceded C++ style
attributes in template declarations as follows:

template<int a>
__attribute__((deprecated("oh no!"))) [[deprecated("oh no!")]] void foo();

This PR fixes the bug.

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




More information about the All-commits mailing list