diff options
author | Sam McCall <sam.mccall@gmail.com> | 2019-07-26 15:29:52 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2019-07-26 15:29:52 +0000 |
commit | 91e8eac73abdfac922b3f95b462982fccb0c85c5 (patch) | |
tree | b914f95989859703cd9a2aa0604e14b327b16ef1 /llvm/utils | |
parent | 736e8aa8ed48fd8c29a909bf616965d0f8677bca (diff) | |
download | bcm5719-llvm-91e8eac73abdfac922b3f95b462982fccb0c85c5.tar.gz bcm5719-llvm-91e8eac73abdfac922b3f95b462982fccb0c85c5.zip |
[clangd] Support extraction of binary "subexpressions" like a + [[b + c]].
Summary:
These aren't formally subexpressions in C++, in this case + is left-associative.
However informally +, *, etc are usually (mathematically) associative and users
consider these subexpressions.
We detect these and in simple cases support extracting the partial expression.
As well as builtin associative operators, we assume that overloads of them
are associative and support those too.
Reviewers: SureYeaah
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D65139
llvm-svn: 367121
Diffstat (limited to 'llvm/utils')
0 files changed, 0 insertions, 0 deletions