clang-tools 22.0.0git
|
Constructing global, non-trivial objects with static storage is disallowed, unless the object is statically initialized with a constexpr constructor or has no explicit constructor. More...
#include <StaticallyConstructedObjectsCheck.h>
Public Member Functions | |
StaticallyConstructedObjectsCheck (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 |
Constructing global, non-trivial objects with static storage is disallowed, unless the object is statically initialized with a constexpr constructor or has no explicit constructor.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/fuchsia/statically-constructed-objects.html
Definition at line 22 of file StaticallyConstructedObjectsCheck.h.
|
inline |
Definition at line 24 of file StaticallyConstructedObjectsCheck.h.
|
override |
Definition at line 44 of file StaticallyConstructedObjectsCheck.cpp.
|
inlineoverride |
Definition at line 26 of file StaticallyConstructedObjectsCheck.h.
|
override |
Definition at line 25 of file StaticallyConstructedObjectsCheck.cpp.