clang-tools  15.0.0git
MisleadingBidirectional.h
Go to the documentation of this file.
1 //===--- MisleadingBidirectionalCheck.h - clang-tidy ------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MISLEADINGBIDIRECTIONALCHECK_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MISLEADINGBIDIRECTIONALCHECK_H
11 
12 #include "../ClangTidyCheck.h"
13 
14 namespace clang {
15 namespace tidy {
16 namespace misc {
17 
19 public:
22 
23  void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
24  Preprocessor *ModuleExpanderPP) override;
25 
26  void registerMatchers(ast_matchers::MatchFinder *Finder) override;
27  void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
28 
29 private:
31  std::unique_ptr<MisleadingBidirectionalHandler> Handler;
32 };
33 
34 } // namespace misc
35 } // namespace tidy
36 } // namespace clang
37 
38 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MISLEADINGBIDIRECTIONALCHECK_H
clang::tidy::misc::MisleadingBidirectionalCheck
Definition: MisleadingBidirectional.h:18
clang::tidy::ClangTidyCheck
Base class for all clang-tidy checks.
Definition: ClangTidyCheck.h:53
clang::tidy::misc::MisleadingBidirectionalCheck::MisleadingBidirectionalCheck
MisleadingBidirectionalCheck(StringRef Name, ClangTidyContext *Context)
Definition: MisleadingBidirectional.cpp:113
clang::tidy::misc::MisleadingBidirectionalCheck::MisleadingBidirectionalHandler
Definition: MisleadingBidirectional.cpp:89
clang::tidy::ClangTidyContext
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.
Definition: ClangTidyDiagnosticConsumer.h:66
clang::tidy::misc::MisleadingBidirectionalCheck::check
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
Definition: MisleadingBidirectional.cpp:126
clang::tidy::misc::MisleadingBidirectionalCheck::registerMatchers
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
Definition: MisleadingBidirectional.cpp:136
clang::tidy::misc::MisleadingBidirectionalCheck::registerPPCallbacks
void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override
Override this to register PPCallbacks in the preprocessor.
Definition: MisleadingBidirectional.cpp:121
Name
Token Name
Definition: MacroToEnumCheck.cpp:89
clang::tidy::bugprone::PP
static Preprocessor * PP
Definition: BadSignalToKillThreadCheck.cpp:29
clang::tidy::misc::MisleadingBidirectionalCheck::~MisleadingBidirectionalCheck
~MisleadingBidirectionalCheck()
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ApplyReplacements.h:27