clang-tools 22.0.0git
clang::tidy::bugprone::StringIntegerAssignmentCheck Class Reference

Finds instances where an integer is assigned to a string. More...

#include <StringIntegerAssignmentCheck.h>

Inheritance diagram for clang::tidy::bugprone::StringIntegerAssignmentCheck:
[legend]

Public Member Functions

 StringIntegerAssignmentCheck (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 instances where an integer is assigned to a string.

For more details see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/string-integer-assignment.html

Definition at line 20 of file StringIntegerAssignmentCheck.h.

Constructor & Destructor Documentation

◆ StringIntegerAssignmentCheck()

clang::tidy::bugprone::StringIntegerAssignmentCheck::StringIntegerAssignmentCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file StringIntegerAssignmentCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::bugprone::StringIntegerAssignmentCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::bugprone::StringIntegerAssignmentCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 24 of file StringIntegerAssignmentCheck.h.

◆ registerMatchers()

void clang::tidy::bugprone::StringIntegerAssignmentCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 18 of file StringIntegerAssignmentCheck.cpp.


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