aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2021-08-25 20:22:15 +0200
committerBalazs Benics <balazs.benics@sigmatechnology.se>2021-08-26 09:23:37 +0200
commit3373e845398bfb8fa0e3c81b7ca84cbfedbad3ae (patch)
tree7322a2de900ed5eb903c0da775b43bf1a37a16d3 /llvm/lib/CodeGen/MachineScheduler.cpp
parentad59735f9d150ebd10d4752a4468795c39f02c5d (diff)
downloadllvm-3373e845398bfb8fa0e3c81b7ca84cbfedbad3ae.zip
llvm-3373e845398bfb8fa0e3c81b7ca84cbfedbad3ae.tar.gz
llvm-3373e845398bfb8fa0e3c81b7ca84cbfedbad3ae.tar.bz2
[clang-tidy] Add bugprone-suspicious-memory-comparison check
The check warns on suspicious calls to `memcmp`. It currently checks for comparing types that do not have unique object representations or are non-standard-layout. Based on https://wiki.sei.cmu.edu/confluence/display/c/EXP42-C.+Do+not+compare+padding+data https://wiki.sei.cmu.edu/confluence/display/c/FLP37-C.+Do+not+use+object+representations+to+compare+floating-point+values and part of https://wiki.sei.cmu.edu/confluence/display/cplusplus/OOP57-CPP.+Prefer+special+member+functions+and+overloaded+operators+to+C+Standard+Library+functions Add alias `cert-exp42-c` and `cert-flp37-c`. Some tests are currently failing at head, the check depends on D89649. Originally started in D71973 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D89651
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions