aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorpoelmanc <cpllvm@stellarscience.com>2021-02-09 14:02:12 +0000
committerNathan James <n.james93@hotmail.co.uk>2021-02-09 14:02:45 +0000
commit98146c1f5d0c772aec56149724119d49990f4d0c (patch)
treec76eaa93f23769d154f8918764828bd35b03d374 /clang/lib/Frontend/CompilerInvocation.cpp
parent068bf9e80220329f7baeaf8df34fb4818ad8aa58 (diff)
downloadllvm-98146c1f5d0c772aec56149724119d49990f4d0c.zip
llvm-98146c1f5d0c772aec56149724119d49990f4d0c.tar.gz
llvm-98146c1f5d0c772aec56149724119d49990f4d0c.tar.bz2
[clang-tidy] fix modernize-use-nullptr false positive with spaceship operator comparisons
`clang-tidy -std=c++20` with `modernize-use-nullptr` mistakenly inserts `nullptr` in place of the comparison operator if the comparison internally expands in the AST to a rewritten spaceship operator. This can be reproduced by running the new `modernize-use-nullptr-cxx20.cpp` test without applying the supplied patch to `UseNullptrCheck.cpp`; the current clang-tidy will mistakenly replace: ```result = (a1 < a2);``` with ```result = (a1 nullptr a2);``` Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D95714
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions