clang-tools 22.0.0git
|
Finds calls of memory manipulation functions memset(), memcpy() and / memmove() on non-TriviallyCopyable objects resulting in undefined behavior. More...
#include <UndefinedMemoryManipulationCheck.h>
Public Member Functions | |
UndefinedMemoryManipulationCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds calls of memory manipulation functions memset(), memcpy() and / memmove() on non-TriviallyCopyable objects resulting in undefined behavior.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/undefined-memory-manipulation.html
Definition at line 22 of file UndefinedMemoryManipulationCheck.h.
|
inline |
Definition at line 24 of file UndefinedMemoryManipulationCheck.h.
|
override |
Definition at line 51 of file UndefinedMemoryManipulationCheck.cpp.
|
override |
Definition at line 24 of file UndefinedMemoryManipulationCheck.cpp.