diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-21 22:21:19 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-21 22:21:19 +0000 |
| commit | 440d456c5cf9613a3ee6a3297f892ddd8da5b8f8 (patch) | |
| tree | 59a4bb0afccd9644ffbffbd4453ade26095c93ff /lib/CodeGen/CGExprAgg.cpp | |
| parent | 52f926cc32e4f4969f767e98d98f0137358d5f12 (diff) | |
| download | clang-440d456c5cf9613a3ee6a3297f892ddd8da5b8f8.tar.gz clang-440d456c5cf9613a3ee6a3297f892ddd8da5b8f8.tar.bz2 clang-440d456c5cf9613a3ee6a3297f892ddd8da5b8f8.tar.xz | |
PR16094: I should have known Obj-C init-capture disambiguation couldn't be
*that* easy...
Try a bit harder to disambiguate. This is mostly straightforward, but for
=-style initializers, we actually need to know where an expression ends:
[foo = bar baz]
is a message send, whereas
[foo = bar + baz]
is a lambda-introducer. Handle this by parsing the expression eagerly, and
replacing it with an annotation token. By chance, we use the *exact same*
parsing rules in both cases (except that we need to assume we're inside a
message send for the parse, to turn off various forms of inapplicable
error recovery).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182432 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions
