]> granicus.if.org Git - clang/commit
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)
commitd925bc6affe1ed96737cc016f0dc53cdd89bee5b
treec9c31b083ef32473e40d4079fcc0462690dcf981
parent40332b100c42439e8e2c800f7d8d5456b087616b
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326052 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
lib/Parse/ParseDecl.cpp
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-type-safety.c [new file with mode: 0644]
test/Sema/warn-type-safety.c