llvm/clang-tools-extra/clang-query/Query.cpp

//===---- Query.cpp - clang-query query -----------------------------------===//
//
// 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 "Query.h"
#include "QueryParser.h"
#include "QuerySession.h"
#include "clang/AST/ASTDumper.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/TextDiagnostic.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>

usingnamespaceclang::ast_matchers;
usingnamespaceclang::ast_matchers::dynamic;

namespace clang {
namespace query {

Query::~Query() {}

bool InvalidQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

bool NoOpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

bool QuitQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

namespace {

struct CollectBoundNodes : MatchFinder::MatchCallback {};

} // namespace

bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

bool LetQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

#ifndef _MSC_VER
const QueryKind SetQueryKind<bool>::value;
const QueryKind SetQueryKind<OutputKind>::value;
#endif

bool FileQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {}

} // namespace query
} // namespace clang