summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-05-13 00:31:07 +0000
committerAlexis Hunt <alercah@gmail.com>2011-05-13 00:31:07 +0000
commitd9a5cc13cf51639690d80bf9f2fe042b61d49dd1 (patch)
tree54c51d7eb063a57faac37630f4113330444bc4e3 /clang/lib/Parse/ParseExpr.cpp
parent8d57d8ea64cb83173c6503acec7da4215da9ed19 (diff)
downloadbcm5719-llvm-d9a5cc13cf51639690d80bf9f2fe042b61d49dd1.tar.gz
bcm5719-llvm-d9a5cc13cf51639690d80bf9f2fe042b61d49dd1.zip
Implement the __is_trivially_copyable type trait
llvm-svn: 131270
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 91fe1e1935e..25d505c2c59 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -566,6 +566,9 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,
/// '__is_trivial'
/// '__is_union'
///
+/// [Clang] unary-type-trait:
+/// '__trivially_copyable'
+///
/// binary-type-trait:
/// [GNU] '__is_base_of'
/// [MS] '__is_convertible_to'
@@ -1060,6 +1063,7 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,
case tok::kw___is_pod:
case tok::kw___is_polymorphic:
case tok::kw___is_trivial:
+ case tok::kw___is_trivially_copyable:
case tok::kw___is_union:
case tok::kw___has_trivial_constructor:
case tok::kw___has_trivial_copy:
OpenPOWER on IntegriCloud