[clang][parser] Set source ranges for GNU-style attributes
authorTimm Bäder <tbaeder@redhat.com>
Thu, 25 Mar 2021 12:32:42 +0000 (13:32 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Sun, 4 Apr 2021 05:59:22 +0000 (07:59 +0200)
commit1b4800c2625912d16867d27e5eec3af27af31557
tree27ef1f268e2572af02bb50e598606944caa40eba
parent5207cde5cb4147155c469e1861427ea9d569bd5a
[clang][parser] Set source ranges for GNU-style attributes

Set the source ranges for parsed GNU-style attributes in
ParseGNUAttributes(), the same way that ParseCXX11Attributes() does it.

Differential Revision: https://reviews.llvm.org/D75844
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/ParsedAttr.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp
clang/test/AST/sourceranges.cpp
clang/test/Parser/cxx0x-attributes.cpp
clang/test/SemaCXX/switch-implicit-fallthrough.cpp