Merge pull request #17219 from fedetrim/master
[SR-7904] Add source filenames in the output of `-dump-ast`
diff --git a/lib/AST/ASTDumper.cpp b/lib/AST/ASTDumper.cpp
index f5bc35a..a27148e 100644
--- a/lib/AST/ASTDumper.cpp
+++ b/lib/AST/ASTDumper.cpp
@@ -773,7 +773,9 @@
void visitSourceFile(const SourceFile &SF) {
OS.indent(Indent);
PrintWithColorRAII(OS, ParenthesisColor) << '(';
- PrintWithColorRAII(OS, ASTNodeColor) << "source_file";
+ PrintWithColorRAII(OS, ASTNodeColor) << "source_file ";
+ PrintWithColorRAII(OS, LocationColor) << '\"' << SF.getFilename() << '\"';
+
for (Decl *D : SF.Decls) {
if (D->isImplicit())
continue;