diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-11-06 10:56:05 +0100 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-11-06 10:56:06 +0100 |
commit | 58fa50f43701097640a4ee5547aee1e4a4eea454 (patch) | |
tree | 0cdc4d428c0770d9ce57128d187ca6087859a484 /libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/test.pass.cpp | |
parent | 6c3fee47a6492b472be2d48cee0a85773f160df0 (diff) | |
download | bcm5719-llvm-58fa50f43701097640a4ee5547aee1e4a4eea454.tar.gz bcm5719-llvm-58fa50f43701097640a4ee5547aee1e4a4eea454.zip |
[Syntax] Add nodes for most common statements
Summary:
Most of the statements mirror the ones provided by clang AST.
Major differences are:
- expressions are wrapped into 'ExpressionStatement' instead of being
a subclass of statement,
- semicolons are always consumed by the leaf expressions (return,
expression satement, etc),
- some clang statements are not handled yet, we wrap those into an
UnknownStatement class, which is not present in clang.
We also define an 'Expression' and 'UnknownExpression' classes in order
to produce 'ExpressionStatement' where needed. The actual implementation
of expressions is not yet ready, it will follow later.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63835
Diffstat (limited to 'libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/test.pass.cpp')
0 files changed, 0 insertions, 0 deletions