summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/ast-dump-expr.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Factor out commonality between variable capture initialization andRichard Smith2019-06-021-0/+1
| | | | | | 'this' capture initialization. llvm-svn: 362317
* Defer building 'this' captures until we have left the capturing regionRichard Smith2019-05-311-2/+2
| | | | | | | | | | and returned to the context in which 'this' should be captured. This means we now always mark 'this' referenced from the context in which it's actually referenced, rather than potentially from some context nested within that. llvm-svn: 362182
* Defer creating fields for captures until we finish building theRichard Smith2019-05-281-7/+7
| | | | | | | | | | | | | | | capturing expression or statement. No functionality change yet. The intent is that we will also delay building the initialization expression until the enclosing context, so that: a) we build the initialization expression in the right context, and b) we can elide captures that are not odr-used, as suggested by P0588R1. This also consolidates some duplicated code building capture fields into a single place. llvm-svn: 361893
* [ASTDump] Add a flag indicating whether a CXXThisExpr is implicitBruno Ricci2019-02-031-2/+2
| | | | | | | | | | | There is currently no way to distinguish implicit from explicit CXXThisExpr in the AST dump output. Differential Revision: https://reviews.llvm.org/D57649 Reviewed By: steveire llvm-svn: 353003
* Mark the lambda function pointer conversion operator as noexcept.Aaron Ballman2019-01-211-7/+7
| | | | | | This implements CWG DR 1722 and fixes PR40309. Patch by Ignat Loskutov. llvm-svn: 351750
* Added test cases for dumping variadic-like functions; NFC.Aaron Ballman2019-01-161-0/+18
| | | | llvm-svn: 351355
* [AST] Store "UsesADL" information in CallExpr.Eric Fiselier2018-12-121-0/+43
| | | | | | | | | | | | | | | | | | | | | Summary: Currently the Clang AST doesn't store information about how the callee of a CallExpr was found. Specifically if it was found using ADL. However, this information is invaluable to tooling. Consider a tool which renames usages of a function. If the originally CallExpr was formed using ADL, then the tooling may need to additionally qualify the replacement. Without information about how the callee was found, the tooling is left scratching it's head. Additionally, we want to be able to match ADL calls as quickly as possible, which means avoiding computing the answer on the fly. This patch changes `CallExpr` to store whether it's callee was found using ADL. It does not change the size of any AST nodes. Reviewers: fowles, rsmith, klimek, shafik Reviewed By: rsmith Subscribers: aaron.ballman, riccibruno, calabrese, titus, cfe-commits Differential Revision: https://reviews.llvm.org/D55534 llvm-svn: 348977
* Adding tests for -ast-dump; NFC.Aaron Ballman2018-12-111-0/+510
This adds tests for expressions in C++. llvm-svn: 348860
OpenPOWER on IntegriCloud