clang-tools 20.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 <optional>
#include <string>

Go to the source code of this file.

Namespaces

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

Functions

 clang::tidy::cppcoreguidelines::AST_MATCHER (CXXRecordDecl, hasPublicVirtualOrProtectedNonVirtualDestructor)
 
static std::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)