summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/ast-dump-templates.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move AST tests into their own test directory; NFC.Aaron Ballman2018-11-301-69/+0
| | | | | | This moves everything primarily testing the functionality of -ast-dump and -ast-print into their own directory, rather than leaving the tests spread around the testing directory. llvm-svn: 348017
* Handle deduction guides better in -ast-print.Richard Smith2017-02-181-2/+8
| | | | llvm-svn: 295521
* Make output of -ast-print a valid C++ code.Serge Pavlov2016-11-101-9/+9
| | | | | | | | | | | | | | | | | | 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
* When pretty-printing a declaration of a pack, put the ellipsis before the nameRichard Smith2014-07-231-0/+12
| | | | | | | | being declared, not at the end. When pretty-printing a non-type template parameter, put the name of the parameter in the middle of the type, not at the end. llvm-svn: 213718
* Provide operator<< for stream output of DeclarationNamesDavid Blaikie2013-05-141-0/+12
| | | | | | | | | | | ASTDumper was already trying to do this & instead got an implicit bool conversion by surprise (thus printing out 0 or 1 instead of the name of the declaration). To avoid that issue & simplify call sites, simply make it the normal/expected operator<<(raw_ostream&, ...) overload & simplify all the existing call sites. (bonus: this function doesn't need to be a member or friend, it's just using public API in DeclarationName) llvm-svn: 181832
* Implement AST dumper for Decls.Alexander Kornienko2012-12-201-3/+3
| | | | | | | | http://llvm-reviews.chandlerc.com/D52 Patch by Philip Craig! llvm-svn: 170634
* Fix a test case that was intermittently failing. The issue was that ↵Richard Trieu2011-07-281-7/+13
| | | | | | | | instantiations are not stored in an order preserving structure, so the print order may be impacted. Modified test case to do two FileCheck passes to ensure that both instantiations are in the same place. Test originially commited at r136306 and temporarily silenced at r136348. llvm-svn: 136385
* test/Misc/ast-dump-templates.cpp: Disable this temporarily due to unstable ↵NAKAMURA Takumi2011-07-281-1/+2
| | | | | | output. llvm-svn: 136348
* Add template instantiations to the output of -ast-dump.Richard Trieu2011-07-281-0/+32
llvm-svn: 136306
OpenPOWER on IntegriCloud