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

Finds unintended character output from unsigned char and signed char to an ostream. More...

#include <UnintendedCharOstreamOutputCheck.h>

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

Public Member Functions

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

Detailed Description

Finds unintended character output from unsigned char and signed char to an ostream.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unintended-char-ostream-output.html

Definition at line 22 of file UnintendedCharOstreamOutputCheck.h.

Constructor & Destructor Documentation

◆ UnintendedCharOstreamOutputCheck()

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

Definition at line 38 of file UnintendedCharOstreamOutputCheck.cpp.

Member Function Documentation

◆ check()

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

Definition at line 77 of file UnintendedCharOstreamOutputCheck.cpp.

◆ isLanguageVersionSupported()

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

Definition at line 28 of file UnintendedCharOstreamOutputCheck.h.

◆ registerMatchers()

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

◆ storeOptions()

void clang::tidy::bugprone::UnintendedCharOstreamOutputCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

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