summaryrefslogtreecommitdiffstats
path: root/clang/test/Coverage/ast-printing.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Frontend] Delete -print-decl-contextsFangrui Song2018-10-031-1/+0
| | | | | | | | | | | | | | Summary: Its job is covered by -ast-dump. The option is rarely used and lacks many AST nodes which will lead to llvm_unreachable() crash. Reviewers: rsmith, arphaman Reviewed By: rsmith Subscribers: jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D52529 llvm-svn: 343660
* Handle -ast-dump-all when passed as the only option.Aaron Ballman2017-06-151-0/+1
| | | | | | Patch by Don Hinton llvm-svn: 305432
* Handle VarTemplateDecl in DeclContextPrinterAlex Lorenz2017-01-031-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
* Make output of -ast-print a valid C++ code.Serge Pavlov2016-11-101-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
* Remove the AST printer (-ast-print-xml), which is too incomplete andDouglas Gregor2011-03-071-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
* "this patch properly addresses escaping < and > which might appearChris Lattner2010-05-121-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
* Rename -dump-record-layouts to -fdump-record-layouts now that the option ↵Anders Carlsson2010-04-101-1/+1
| | | | | | behaves like aa flag. llvm-svn: 100943
* Better coverage for -dump-record-layouts and -print-decl-contexts.Eli Friedman2010-01-031-0/+2
| | | | llvm-svn: 92441
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-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
* Normalize options to use '-FOO' instead of '--FOO'.Daniel Dunbar2009-11-291-4/+4
| | | | llvm-svn: 90071
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-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
* Printing for using directives, e.g.,Douglas Gregor2009-05-301-0/+6
using namespace std::debug; Extended UsingDirectiveDecl to store the nested-name-specifier that precedes the nominated namespace. llvm-svn: 72614
OpenPOWER on IntegriCloud