Add a C++11 and C2x spelling for the type safety attribute (argument_with_type_tag...
authorAaron Ballman <aaron@aaronballman.com>
Sun, 25 Feb 2018 14:01:04 +0000 (14:01 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 25 Feb 2018 14:01:04 +0000 (14:01 +0000)
commita26d8ee559354f10be657c399df637a90b518381
tree7138801fd68742afb95d68d8c75db9c2dccab2dc
parentbcaf38051c5989e8e1a0c819a069a098bb6f08cc
Add a C++11 and C2x spelling for the type safety attribute (argument_with_type_tag, pointer_with_type_tag, and type_tag_for_datatype) in the clang vendor namespace.

The TypeTagForDatatype attribute had custom parsing rules that previously prevented it from being supported with square bracket notation. The ArgumentWithTypeTag attribute previously had unnecessary custom parsing that could be handled declaratively.

llvm-svn: 326052
clang/include/clang/Basic/Attr.td
clang/lib/Parse/ParseDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Sema/attr-type-safety.c [new file with mode: 0644]
clang/test/Sema/warn-type-safety.c