summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-07-15 05:09:51 +0000
committerJohn McCall <rjmccall@apple.com>2011-07-15 05:09:51 +0000
commit7c454bb8cecede1e46d95d6397ba82d9e1b73f32 (patch)
tree3f8cbb4dd884ec4eb98960f7937662a15045a5ae /clang/lib/AST/StmtPrinter.cpp
parent65667dbf2d16add054b606ce15c69b3c282bf962 (diff)
downloadbcm5719-llvm-7c454bb8cecede1e46d95d6397ba82d9e1b73f32.tar.gz
bcm5719-llvm-7c454bb8cecede1e46d95d6397ba82d9e1b73f32.zip
Create a new expression node, SubstNonTypeTemplateParmExpr,
to represent a fully-substituted non-type template parameter. This should improve source fidelity, as well as being generically useful for diagnostics and such. llvm-svn: 135243
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index f8edaf7ccf2..f705a84c7cf 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -1413,6 +1413,11 @@ void StmtPrinter::VisitSubstNonTypeTemplateParmPackExpr(
OS << Node->getParameterPack()->getNameAsString();
}
+void StmtPrinter::VisitSubstNonTypeTemplateParmExpr(
+ SubstNonTypeTemplateParmExpr *Node) {
+ Visit(Node->getReplacement());
+}
+
void StmtPrinter::VisitMaterializeTemporaryExpr(MaterializeTemporaryExpr *Node){
PrintExpr(Node->GetTemporaryExpr());
}
OpenPOWER on IntegriCloud