diff options
author | Hansruedi Patzen | 2018-05-28 13:03:00 +0000 |
---|---|---|
committer | Hansruedi Patzen | 2018-05-29 06:24:51 +0000 |
commit | f65fa5b7c5d60ac6701626b4d05167c26390215f (patch) | |
tree | c24538872f6962df33b752e030d0edc5d1fc5ae2 /core/org.eclipse.cdt.core.tests/resources/rewrite | |
parent | eb197ea3c72fe47ed95cb3ba70e63c79dd2a0dd4 (diff) | |
download | org.eclipse.cdt-f65fa5b7c5d60ac6701626b4d05167c26390215f.tar.gz org.eclipse.cdt-f65fa5b7c5d60ac6701626b4d05167c26390215f.tar.xz org.eclipse.cdt-f65fa5b7c5d60ac6701626b4d05167c26390215f.zip |
Bug 535196: [C++17] Support *this in lambda capture
Implementation and tests.
Change-Id: If32911514eb62078215b5f06be12289fa571e9a3
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/resources/rewrite')
-rw-r--r-- | core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterExpressionTestSource.awts | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterExpressionTestSource.awts b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterExpressionTestSource.awts index 5fb282c1a78..0ca5a850e6a 100644 --- a/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterExpressionTestSource.awts +++ b/core/org.eclipse.cdt.core.tests/resources/rewrite/ASTWriterExpressionTestSource.awts @@ -216,4 +216,28 @@ constexpr long double operator ""_deg(long double deg) int main() { double x = 90.0_deg; -}
\ No newline at end of file +} + +//!Star this lambda capture +//%CPP +struct S +{ + void foo() + { + [*this] { + } + ; + } +}; + +//!This lambda capture +//%CPP +struct S +{ + void foo() + { + [this] { + } + ; + } +}; |