clang-tools 22.0.0git
|
A check that finds classes that would be trivial if not for the defaulted destructors declared out-of-line: struct A: TrivialClass { ~A(); TrivialClass trivial_fields; }; A::~A() = default;. More...
#include <TriviallyDestructibleCheck.h>
Public Member Functions | |
TriviallyDestructibleCheck (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 |
A check that finds classes that would be trivial if not for the defaulted destructors declared out-of-line: struct A: TrivialClass { ~A(); TrivialClass trivial_fields; }; A::~A() = default;.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/performance/trivially-destructible.html
Definition at line 26 of file TriviallyDestructibleCheck.h.
|
inline |
Definition at line 28 of file TriviallyDestructibleCheck.h.
|
override |
Definition at line 49 of file TriviallyDestructibleCheck.cpp.
References clang::tidy::utils::lexer::findNextTerminator().
|
inlineoverride |
Definition at line 30 of file TriviallyDestructibleCheck.h.
|
override |
Definition at line 36 of file TriviallyDestructibleCheck.cpp.