clang-tools 22.0.0git
clang::tidy::readability::RedundantStringInitCheck Class Reference

Finds unnecessary string initializations. More...

#include <RedundantStringInitCheck.h>

Inheritance diagram for clang::tidy::readability::RedundantStringInitCheck:
[legend]

Public Member Functions

 RedundantStringInitCheck (StringRef Name, ClangTidyContext *Context)
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Finds unnecessary string initializations.

Definition at line 19 of file RedundantStringInitCheck.h.

Constructor & Destructor Documentation

◆ RedundantStringInitCheck()

clang::tidy::readability::RedundantStringInitCheck::RedundantStringInitCheck ( StringRef Name,
ClangTidyContext * Context )

Member Function Documentation

◆ check()

void clang::tidy::readability::RedundantStringInitCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::readability::RedundantStringInitCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 22 of file RedundantStringInitCheck.h.

◆ registerMatchers()

void clang::tidy::readability::RedundantStringInitCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

◆ storeOptions()

void clang::tidy::readability::RedundantStringInitCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

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