summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/StmtNodes.td
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2016-07-16 00:35:23 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2016-07-16 00:35:23 +0000
commitd3b0a63ca6016aceefdc147eeb88e90a988dacca (patch)
tree2576c0af7b32df8726bede4d459e7b275416754e /include/clang/Basic/StmtNodes.td
parentc45b5c87351f6fd018c60eb4839db3a12f289179 (diff)
[ObjC] Implement @available in the Parser and AST
This patch adds a new AST node: ObjCAvailabilityCheckExpr, and teaches the Parser and Sema to generate it. This node represents an availability check of the form: @available(macos 10.10, *); Which will eventually compile to a runtime check of the host's OS version. This is the first patch of the feature I proposed here: http://lists.llvm.org/pipermail/cfe-dev/2016-July/049851.html Differential Revision: https://reviews.llvm.org/D22171 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/StmtNodes.td')
-rw-r--r--include/clang/Basic/StmtNodes.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/StmtNodes.td b/include/clang/Basic/StmtNodes.td
index df7e7362e2..973b3bb6fd 100644
--- a/include/clang/Basic/StmtNodes.td
+++ b/include/clang/Basic/StmtNodes.td
@@ -165,6 +165,7 @@ def ObjCIsaExpr : DStmt<Expr>;
def ObjCIndirectCopyRestoreExpr : DStmt<Expr>;
def ObjCBoolLiteralExpr : DStmt<Expr>;
def ObjCSubscriptRefExpr : DStmt<Expr>;
+def ObjCAvailabilityCheckExpr : DStmt<Expr>;
// Obj-C ARC Expressions.
def ObjCBridgedCastExpr : DStmt<ExplicitCastExpr>;