summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/ast-dump-stmt.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [ASTDump] Add utility for dumping a label with child nodesStephen Kelly2019-01-111-2/+1
| | | | | | | | | | | | | | | | | | | Summary: Use it to add optional label nodes to Stmt dumps. This preserves behavior of InitExprList dump: // CHECK-NEXT: `-InitListExpr {{.+}} <col:13, col:15> 'U [3]' // CHECK-NEXT: |-array_filler: InitListExpr {{.+}} <col:15> 'U' field Field {{.+}} 'i' 'int' // CHECK-NEXT: `-InitListExpr {{.+}} <col:14> 'U' field Field {{.+}} 'i' 'int' // CHECK-NEXT: `-IntegerLiteral {{.+}} <col:14> 'int' 1 Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D55488 llvm-svn: 350957
* Revert "Change InitListExpr dump to label and pointer"Stephen Kelly2018-12-101-2/+3
| | | | | | This reverts commit r348794. llvm-svn: 348799
* Change InitListExpr dump to label and pointerStephen Kelly2018-12-101-3/+2
| | | | | | | | | | | | Summary: Don't add a child just for the label. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D55495 llvm-svn: 348794
* Fix InitListExpr testStephen Kelly2018-12-091-6/+6
| | | | | | Wrong case of Check meant this has no effect. llvm-svn: 348713
* Add an explicit triple to this test to prevent failures due to size_t ↵Aaron Ballman2018-12-071-3/+3
| | | | | | differences. llvm-svn: 348599
* Adding tests for -ast-dump; NFC.Aaron Ballman2018-12-071-2/+174
| | | | | | This adds tests for various statements in C++ that are not covered by C. llvm-svn: 348596
* Add test for InitListExprStephen Kelly2018-12-071-0/+18
| | | | llvm-svn: 348553
* Move AST tests into their own test directory; NFC.Aaron Ballman2018-11-301-0/+83
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
OpenPOWER on IntegriCloud