summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-08-09 23:40:54 +0000
committerSam McCall <sam.mccall@gmail.com>2019-08-09 23:40:54 +0000
commit1aaef90c2aab94407b047ee82b8ed9d3aecd532f (patch)
treefaab5aae91c665df8a26f5dc13230c35aa29633f /clang/lib/Sema/SemaInit.cpp
parent795c3667d91010c486877563014092db1313644b (diff)
downloadbcm5719-llvm-1aaef90c2aab94407b047ee82b8ed9d3aecd532f.tar.gz
bcm5719-llvm-1aaef90c2aab94407b047ee82b8ed9d3aecd532f.zip
[clangd] Disallow extraction of expression-statements.
Summary: I split out the "extract parent instead of this" logic from the "this isn't worth extracting" logic (now in eligibleForExtraction()), because I found it hard to reason about. While here, handle overloaded as well as builtin assignment operators. Also this uncovered a bug in getCallExpr() which I fixed. Reviewers: SureYeaah Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65337 llvm-svn: 368500
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud