Add a C++11 and C2x spelling for the availability attribute in the clang vendor names...
authorAaron Ballman <aaron@aaronballman.com>
Sat, 24 Feb 2018 17:16:42 +0000 (17:16 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 24 Feb 2018 17:16:42 +0000 (17:16 +0000)
commit38bbc16a8b1eb04fca23485af441e3282301d885
tree7fbb01e0524db76d79bbd8a441e19270cf24277d
parent4137bc68a4d465d1d23d110bb031ac0cb3ca588f
Add a C++11 and C2x spelling for the availability attribute in the clang vendor namespace.

This attribute has custom parsing rules that previously prevented it from being supported with square bracket notation. Rework the clang attribute argument parsing to be more easily extended for other custom-parsed attributes.

llvm-svn: 326036
clang/include/clang/Basic/Attr.td
clang/lib/Parse/ParseDecl.cpp
clang/test/Sema/attr-availability-square-brackets.c [new file with mode: 0644]