diff options
author | Whisperity <whisperity@gmail.com> | 2022-02-25 14:21:18 +0100 |
---|---|---|
committer | Whisperity <whisperity@gmail.com> | 2022-02-25 16:24:27 +0100 |
commit | 416e689ecda66616da855c82f7ec652657730c6a (patch) | |
tree | cc4866d9aa69bd5c93a0edf6929f9b27472ab35b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 90f22ab3adcf2e516e7a15c870c30eb0f47fbc20 (diff) | |
download | llvm-416e689ecda66616da855c82f7ec652657730c6a.zip llvm-416e689ecda66616da855c82f7ec652657730c6a.tar.gz llvm-416e689ecda66616da855c82f7ec652657730c6a.tar.bz2 |
[clang-tidy] Fix `readability-suspicious-call-argument` crash for arguments without name-like identifier
As originally reported by @steakhal in
http://github.com/llvm/llvm-project/issues/54074, the name extraction logic of
`readability-suspicious-call-argument` crashes if the argument passed to a
function was a function call to a non-trivially named entity (e.g. an operator).
Fixed this crash case by ignoring such constructs and considering them as having
no name.
Reviewed By: aaron.ballman, steakhal
Differential Revision: http://reviews.llvm.org/D120555
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions