]> granicus.if.org Git - clang/commit
Enhance the 'diagnose_if' attribute so that we can apply it for ObjC methods and...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 24 May 2017 00:46:27 +0000 (00:46 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 24 May 2017 00:46:27 +0000 (00:46 +0000)
commitb4d1da0e78733b71e791726473e28d513a7e5ece
tree365b3d963726568940e5765fea6a4da2a36f8ee6
parented367df541e9827f07e6c6fdef6b61ef3b491d4b
Enhance the 'diagnose_if' attribute so that we can apply it for ObjC methods and properties as well

This is an initial commit to allow using it with constant expressions, a follow-up commit will enable full support for it in ObjC methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303712 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
include/clang/Sema/Sema.h
lib/Lex/PPMacroExpansion.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/SemaObjC/diagnose_if.m [new file with mode: 0644]
utils/TableGen/ClangAttrEmitter.cpp