aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorWhisperity <whisperity@gmail.com>2022-02-25 14:21:18 +0100
committerWhisperity <whisperity@gmail.com>2022-02-25 16:24:27 +0100
commit416e689ecda66616da855c82f7ec652657730c6a (patch)
treecc4866d9aa69bd5c93a0edf6929f9b27472ab35b /clang/lib/Frontend/CompilerInvocation.cpp
parent90f22ab3adcf2e516e7a15c870c30eb0f47fbc20 (diff)
downloadllvm-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