clang-tools 22.0.0git
|
Finds nondeterministic usages of pointers in unordered containers. More...
#include <NondeterministicPointerIterationOrderCheck.h>
Public Member Functions | |
NondeterministicPointerIterationOrderCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Finds nondeterministic usages of pointers in unordered containers.
The check also finds calls to sorting-like algorithms on a container of pointers.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/nondeterministic-pointer-iteration-order.html
Definition at line 22 of file NondeterministicPointerIterationOrderCheck.h.
|
inline |
Definition at line 24 of file NondeterministicPointerIterationOrderCheck.h.
|
override |
Definition at line 47 of file NondeterministicPointerIterationOrderCheck.cpp.
|
inlineoverride |
Definition at line 32 of file NondeterministicPointerIterationOrderCheck.h.
|
inlineoverride |
Definition at line 27 of file NondeterministicPointerIterationOrderCheck.h.
|
override |
Definition at line 16 of file NondeterministicPointerIterationOrderCheck.cpp.