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

This check finds semicolon that modifies the meaning of the program unintendedly. More...

#include <SuspiciousSemicolonCheck.h>

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

Public Member Functions

 SuspiciousSemicolonCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

This check finds semicolon that modifies the meaning of the program unintendedly.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/suspicious-semicolon.html

Definition at line 21 of file SuspiciousSemicolonCheck.h.

Constructor & Destructor Documentation

◆ SuspiciousSemicolonCheck()

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

Definition at line 23 of file SuspiciousSemicolonCheck.h.

Member Function Documentation

◆ check()

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

◆ registerMatchers()

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

Definition at line 18 of file SuspiciousSemicolonCheck.cpp.


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