diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-09-09 23:47:53 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-09-09 23:47:53 +0000 |
| commit | 9e922b1663ecb95dc7eee03002fd66ed18fb3192 (patch) | |
| tree | cb943d66744704cc37ab7fc348494e7a0c8b5918 /lib/AST/StmtPrinter.cpp | |
| parent | 17b708d61827cd86278e9580b041dd6cbadf07d3 (diff) | |
| download | clang-9e922b1663ecb95dc7eee03002fd66ed18fb3192.tar.gz clang-9e922b1663ecb95dc7eee03002fd66ed18fb3192.tar.bz2 clang-9e922b1663ecb95dc7eee03002fd66ed18fb3192.tar.xz | |
Add new 'CXXConditionDeclExpr' expression node used for a 'condition' declaration, e.g: "if (int x=0) {...}".
It is a subclass of DeclRefExpr and the main difference is that CXXConditionDeclExpr owns the declaration that it references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtPrinter.cpp')
| -rw-r--r-- | lib/AST/StmtPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp index f5806ea5dd..3c3e207a02 100644 --- a/lib/AST/StmtPrinter.cpp +++ b/lib/AST/StmtPrinter.cpp @@ -829,6 +829,11 @@ void StmtPrinter::VisitCXXZeroInitValueExpr(CXXZeroInitValueExpr *Node) { OS << Node->getType().getAsString() << "()"; } +void +StmtPrinter::VisitCXXConditionDeclExpr(CXXConditionDeclExpr *E) { + PrintRawDecl(E->getVarDecl()); +} + // Obj-C void StmtPrinter::VisitObjCStringLiteral(ObjCStringLiteral *Node) { |
