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

Finds unnecessary calls to std::string::c_str(). More...

#include <RedundantStringCStrCheck.h>

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

Public Member Functions

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

Finds unnecessary calls to std::string::c_str().

Definition at line 17 of file RedundantStringCStrCheck.h.

Constructor & Destructor Documentation

◆ RedundantStringCStrCheck()

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

Definition at line 32 of file RedundantStringCStrCheck.cpp.

Member Function Documentation

◆ check()

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

◆ isLanguageVersionSupported()

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

Definition at line 20 of file RedundantStringCStrCheck.h.

◆ registerMatchers()

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

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