Mercurial > hg > CbC > CbC_llvm
view clang-tools-extra/clang-query/QuerySession.h @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 0572611fdcc8 |
line wrap: on
line source
//===--- QuerySession.h - clang-query ---------------------------*- C++ -*-===// // // 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 // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_SESSION_H #define LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_SESSION_H #include "clang/ASTMatchers/Dynamic/VariantValue.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringMap.h" namespace clang { class ASTUnit; namespace query { /// Represents the state for a particular clang-query session. class QuerySession { public: QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs) : ASTs(ASTs), PrintOutput(false), DiagOutput(true), DetailedASTOutput(false), BindRoot(true), PrintMatcher(false), Terminate(false) {} llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs; bool PrintOutput; bool DiagOutput; bool DetailedASTOutput; bool BindRoot; bool PrintMatcher; bool Terminate; llvm::StringMap<ast_matchers::dynamic::VariantValue> NamedValues; }; } // namespace query } // namespace clang #endif