aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Coverage/ast-printing.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-06-15Handle -ast-dump-all when passed as the only option.Aaron Ballman1-0/+1
Patch by Don Hinton llvm-svn: 305432
2017-01-03Handle VarTemplateDecl in DeclContextPrinterAlex Lorenz1-6/+6
This commit fixes a crash that occurs when -print-decl-contexts AST consumer tries to print an unhandled declaration. rdar://19467234 Differential Revision: https://reviews.llvm.org/D26964 llvm-svn: 290886
2016-11-10Make output of -ast-print a valid C++ code.Serge Pavlov1-1/+3
Output generated by option -ast-print looks like C/C++ code, and it really is for plain C. For C++ the produced output was not valid C++ code, but the differences were small. With this change the output is fixed and can be compiled. Tests are changed so that output produced by -ast-print is compiled again with the same flags and both outputs are compared. Option -ast-print is extensively used in clang tests but it itself was tested poorly, existing tests only checked that compiler did not crash. There are unit tests in file DeclPrinterTest.cpp, but they test only terse output mode. Differential Revision: https://reviews.llvm.org/D26452 llvm-svn: 286439
2011-03-07Remove the AST printer (-ast-print-xml), which is too incomplete andDouglas Gregor1-1/+0
too low-level to actually be useful but is just interesting enough for people to try to use it (which won't actually work beyond toy examples). To bring back the AST printer, it needs to be: - Complete, covering all of C/C++/Objective-C - Documented, with appropriate Schema against which we can validate the output - Designed for C/C++/Objective-C, not Clang's specific ASTs - Stable across Clang versions - Well-tested llvm-svn: 127141
2010-05-12"this patch properly addresses escaping < and > which might appearChris Lattner1-1/+1
(e.g. for C++ operators) in the xml dump. I also re-enabled the unit test for ast-print-xml (or so I think) at least, make test didn't fail..." patch by Sebastien Binet! llvm-svn: 103671
2010-04-10Rename -dump-record-layouts to -fdump-record-layouts now that the option ↵Anders Carlsson1-1/+1
behaves like aa flag. llvm-svn: 100943
2010-01-03Better coverage for -dump-record-layouts and -print-decl-contexts.Eli Friedman1-0/+2
llvm-svn: 92441
2009-12-15Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar1-4/+4
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
2009-11-29Normalize options to use '-FOO' instead of '--FOO'.Daniel Dunbar1-4/+4
llvm-svn: 90071
2009-11-08Eliminate &&s in tests.Daniel Dunbar1-2/+2
- 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
2009-05-30Printing for using directives, e.g.,Douglas Gregor1-0/+6
using namespace std::debug; Extended UsingDirectiveDecl to store the nested-name-specifier that precedes the nominated namespace. llvm-svn: 72614