diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-10-10 10:51:48 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-10-10 10:51:48 +0000 |
commit | aeb4b3e6324bfcce4b997204e54b8a0bf63efd5d (patch) | |
tree | bb79c5938723a1c61dd31ff221a32629bb4343ff /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 5cb3a82892ed66655849b49cd693c69f2139ec5c (diff) | |
download | bcm5719-llvm-aeb4b3e6324bfcce4b997204e54b8a0bf63efd5d.tar.gz bcm5719-llvm-aeb4b3e6324bfcce4b997204e54b8a0bf63efd5d.zip |
[CodeComplete] Fix crash when completing params function declarations.
Summary:
In a decl like `int AA(BB cc)` where BB isn't defined, we end up trying to
parse `BB cc` as an expression (vexing parse) and end up triggering the
parser's "recovery-in-function" completion with no actual function
scope.
This patch avoids the assumption that such a scope exists in this context.
Reviewers: kadircet
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D53070
llvm-svn: 344133
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions