summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-03 18:14:24 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-03 18:14:24 +0000
commitdca70af22f74c8a298def2b262f6f5fc277a34f0 (patch)
tree0921c956cf83a78fc79ef8cf3c3db13ef2a65293 /clang/lib/AST/StmtPrinter.cpp
parentdd5eb9df0cd248bc20fdca01f007f7119633a7d7 (diff)
downloadbcm5719-llvm-dca70af22f74c8a298def2b262f6f5fc277a34f0.tar.gz
bcm5719-llvm-dca70af22f74c8a298def2b262f6f5fc277a34f0.zip
Implement support for the __is_final type trait, to determine whether
a class is marked 'final', from Alberto Ganesh Barbati! Fixes PR11462. llvm-svn: 145775
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 220e50a058a..6d9139c000a 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1409,6 +1409,7 @@ static const char *getTypeTraitName(UnaryTypeTrait UTT) {
case UTT_IsConst: return "__is_const";
case UTT_IsEmpty: return "__is_empty";
case UTT_IsEnum: return "__is_enum";
+ case UTT_IsFinal: return "__is_final";
case UTT_IsFloatingPoint: return "__is_floating_point";
case UTT_IsFunction: return "__is_function";
case UTT_IsFundamental: return "__is_fundamental";
OpenPOWER on IntegriCloud