clang-tools  16.0.0git
Namespaces | Functions
VirtualClassDestructorCheck.cpp File Reference
#include "VirtualClassDestructorCheck.h"
#include "../utils/LexerUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
#include <string>
Include dependency graph for VirtualClassDestructorCheck.cpp:

Go to the source code of this file.

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::tidy
 
 clang::tidy::cppcoreguidelines
 

Functions

 clang::tidy::cppcoreguidelines::AST_MATCHER (CXXRecordDecl, hasPublicVirtualOrProtectedNonVirtualDestructor)
 
static Optional< CharSourceRange > clang::tidy::cppcoreguidelines::getVirtualKeywordRange (const CXXDestructorDecl &Destructor, const SourceManager &SM, const LangOptions &LangOpts)
 
static const AccessSpecDecl * clang::tidy::cppcoreguidelines::getPublicASDecl (const CXXRecordDecl &StructOrClass)
 
static FixItHint clang::tidy::cppcoreguidelines::generateUserDeclaredDestructor (const CXXRecordDecl &StructOrClass, const SourceManager &SourceManager)
 
static std::string clang::tidy::cppcoreguidelines::getSourceText (const CXXDestructorDecl &Destructor)
 
static std::string clang::tidy::cppcoreguidelines::eraseKeyword (std::string &DestructorString, const std::string &Keyword)
 
static FixItHint clang::tidy::cppcoreguidelines::changePrivateDestructorVisibilityTo (const std::string &Visibility, const CXXDestructorDecl &Destructor, const SourceManager &SM, const LangOptions &LangOpts)