llvm/clang-tools-extra/clang-tidy/bugprone/StandaloneEmptyCheck.cpp

//===--- StandaloneEmptyCheck.cpp - clang-tidy ----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "StandaloneEmptyCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/Stmt.h"
#include "clang/AST/Type.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Casting.h"

namespace clang::tidy::bugprone {

BoundNodes;
callee;
callExpr;
classTemplateDecl;
cxxMemberCallExpr;
cxxMethodDecl;
expr;
functionDecl;
hasAncestor;
hasName;
hasParent;
ignoringImplicit;
ignoringParenImpCasts;
MatchFinder;
optionally;
returns;
stmt;
stmtExpr;
unless;
voidType;

const Expr *getCondition(const BoundNodes &Nodes, const StringRef NodeId) {}

void StandaloneEmptyCheck::registerMatchers(ast_matchers::MatchFinder *Finder) {}

void StandaloneEmptyCheck::check(const MatchFinder::MatchResult &Result) {}

} // namespace clang::tidy::bugprone