[clang] Allow attributes to be constructed from keyword tokens
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 11 Apr 2023 16:39:23 +0000 (17:39 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 13 Apr 2023 09:14:49 +0000 (10:14 +0100)
commit265d87e46535bef2b718759ba39bb9fa30b1ef48
treea8edeac20fce933f34041f369ae798b431a84123
parentb6d4d51f8f5aab311df34c753b925760578729bd
[clang] Allow attributes to be constructed from keyword tokens

This patch adds an extra AttributeCommonInfo::Form constructor
for keywords, represented by their TokenKind.  This isn't a
win on its own, but it helps with later patches.

No functional change intended.

Differential Revision: https://reviews.llvm.org/D148103
clang/include/clang/Basic/AttributeCommonInfo.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/ParseExprCXX.cpp