clang-tools 22.0.0git
clang::tidy::hicpp::SignedBitwiseCheck Class Reference

This check implements the rule 5.6.1 of the HICPP Standard, which disallows bitwise operations on signed integer types. More...

#include <SignedBitwiseCheck.h>

Inheritance diagram for clang::tidy::hicpp::SignedBitwiseCheck:
[legend]

Public Member Functions

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

Detailed Description

This check implements the rule 5.6.1 of the HICPP Standard, which disallows bitwise operations on signed integer types.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/hicpp/signed-bitwise.html

Definition at line 21 of file SignedBitwiseCheck.h.

Constructor & Destructor Documentation

◆ SignedBitwiseCheck()

clang::tidy::hicpp::SignedBitwiseCheck::SignedBitwiseCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 19 of file SignedBitwiseCheck.cpp.

Member Function Documentation

◆ check()

void clang::tidy::hicpp::SignedBitwiseCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 75 of file SignedBitwiseCheck.cpp.

◆ registerMatchers()

void clang::tidy::hicpp::SignedBitwiseCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 30 of file SignedBitwiseCheck.cpp.

◆ storeOptions()

void clang::tidy::hicpp::SignedBitwiseCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 25 of file SignedBitwiseCheck.cpp.


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