#include "MisleadingBidirectional.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/Support/ConvertUTF.h"
#include <optional>
usingnamespaceclang;
usingnamespaceclang::tidy::misc;
static bool containsMisleadingBidi(StringRef Buffer,
bool HonorLineBreaks = true) { … }
class MisleadingBidirectionalCheck::MisleadingBidirectionalHandler
: public CommentHandler { … };
MisleadingBidirectionalCheck::MisleadingBidirectionalCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
MisleadingBidirectionalCheck::~MisleadingBidirectionalCheck() = default;
void MisleadingBidirectionalCheck::registerPPCallbacks(
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { … }
void MisleadingBidirectionalCheck::check(
const ast_matchers::MatchFinder::MatchResult &Result) { … }
void MisleadingBidirectionalCheck::registerMatchers(
ast_matchers::MatchFinder *Finder) { … }