#include "RedundantBranchConditionCheck.h"
#include "../utils/Aliasing.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Analysis/Analyses/ExprMutationAnalyzer.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
hasPtrOrReferenceInFunc;
namespace clang::tidy::bugprone {
static const char CondVarStr[] = …;
static const char OuterIfStr[] = …;
static const char InnerIfStr[] = …;
static const char OuterIfVar1Str[] = …;
static const char OuterIfVar2Str[] = …;
static const char InnerIfVar1Str[] = …;
static const char InnerIfVar2Str[] = …;
static const char FuncStr[] = …;
static bool isChangedBefore(const Stmt *S, const Stmt *NextS, const Stmt *PrevS,
const VarDecl *Var, ASTContext *Context) { … }
void RedundantBranchConditionCheck::registerMatchers(MatchFinder *Finder) { … }
void RedundantBranchConditionCheck::check(const MatchFinder::MatchResult &Result) { … }
}