diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-05-24 00:46:27 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-05-24 00:46:27 +0000 |
commit | a7233bd8016027f14bead4f35133b44f250f4a42 (patch) | |
tree | a14810f972ad6128a63333c9eea32b6dcdaf2145 /clang/lib/Lex/PPMacroExpansion.cpp | |
parent | cfd8065dbb911ed6113084d1d0bc034d5f2f5930 (diff) | |
download | bcm5719-llvm-a7233bd8016027f14bead4f35133b44f250f4a42.tar.gz bcm5719-llvm-a7233bd8016027f14bead4f35133b44f250f4a42.zip |
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.
llvm-svn: 303712
Diffstat (limited to 'clang/lib/Lex/PPMacroExpansion.cpp')
-rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 6c7663994a4..2f141a1b20f 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -1166,6 +1166,7 @@ static bool HasFeature(const Preprocessor &PP, StringRef Feature) { .Case("objc_generics", LangOpts.ObjC2) .Case("objc_generics_variance", LangOpts.ObjC2) .Case("objc_class_property", LangOpts.ObjC2) + .Case("objc_diagnose_if_attr", LangOpts.ObjC2) // C11 features .Case("c_alignas", LangOpts.C11) .Case("c_alignof", LangOpts.C11) |