clang-tools 22.0.0git
clang::tidy::boost::UseToStringCheck Class Reference

Finds calls to boost::lexical_cast<std::string> and / boost::lexical_cast<std::wstring> and replaces them with / std::to_string and std::to_wstring calls. More...

#include <UseToStringCheck.h>

Inheritance diagram for clang::tidy::boost::UseToStringCheck:
[legend]

Public Member Functions

 UseToStringCheck (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 calls to boost::lexical_cast<std::string> and / boost::lexical_cast<std::wstring> and replaces them with / std::to_string and std::to_wstring calls.

For the user-facing documentation see:
https://clang.llvm.org/extra/clang-tidy/checks/boost/use-to-string.html 

Definition at line 22 of file UseToStringCheck.h.

Constructor & Destructor Documentation

◆ UseToStringCheck()

clang::tidy::boost::UseToStringCheck::UseToStringCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file UseToStringCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::boost::UseToStringCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 38 of file UseToStringCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::boost::UseToStringCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 26 of file UseToStringCheck.h.

◆ registerMatchers()

void clang::tidy::boost::UseToStringCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 22 of file UseToStringCheck.cpp.


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