clang-tools 22.0.0git
clang::tidy::llvm_check::TwineLocalCheck Class Reference

Looks for local Twine variables which are prone to use after frees and should be generally avoided. More...

#include <TwineLocalCheck.h>

Inheritance diagram for clang::tidy::llvm_check::TwineLocalCheck:
[legend]

Public Member Functions

 TwineLocalCheck (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

Detailed Description

Looks for local Twine variables which are prone to use after frees and should be generally avoided.

Definition at line 18 of file TwineLocalCheck.h.

Constructor & Destructor Documentation

◆ TwineLocalCheck()

clang::tidy::llvm_check::TwineLocalCheck::TwineLocalCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 20 of file TwineLocalCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::llvm_check::TwineLocalCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 26 of file TwineLocalCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::llvm_check::TwineLocalCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 22 of file TwineLocalCheck.h.

◆ registerMatchers()

void clang::tidy::llvm_check::TwineLocalCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 18 of file TwineLocalCheck.cpp.


The documentation for this class was generated from the following files: