Index: cfe/trunk/lib/AST/ASTDumper.cpp =================================================================== --- cfe/trunk/lib/AST/ASTDumper.cpp +++ cfe/trunk/lib/AST/ASTDumper.cpp @@ -727,6 +727,8 @@ } void ASTDumper::VisitCapturedDecl(const CapturedDecl *D) { + if (D->isNothrow()) + OS << " nothrow"; dumpStmt(D->getBody()); } Index: cfe/trunk/test/AST/dump.cpp =================================================================== --- cfe/trunk/test/AST/dump.cpp +++ cfe/trunk/test/AST/dump.cpp @@ -61,7 +61,7 @@ // CHECK-NEXT: | | `-ImplicitCastExpr {{.+}} 'int' // CHECK-NEXT: | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} '.capture_expr.' 'int' // CHECK-NEXT: | `-CapturedStmt {{.+}} -// CHECK-NEXT: | |-CapturedDecl {{.+}} <> +// CHECK-NEXT: | |-CapturedDecl {{.+}} <> nothrow // CHECK-NEXT: | | |-ForStmt {{.+}} // CHECK: | | | `-UnaryOperator {{.+}} 'int' lvalue prefix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &'