21#ifndef LLVM_CLANG_TESTING_TESTAST_H
22#define LLVM_CLANG_TESTING_TESTAST_H
27#include "llvm/ADT/StringRef.h"
66 std::function<std::unique_ptr<FrontendAction>()>
MakeAction;
100 std::unique_ptr<FrontendAction> Action;
101 std::unique_ptr<CompilerInstance> Clang;
102 std::vector<StoredDiagnostic> Diagnostics;
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Implements support for file system lookup, file system caching, and directory search management.
Abstract base class for actions which can be performed by the frontend.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
Sema - This implements semantic analysis and AST building for C.
This class handles loading and caching of source files into memory.
The result of parsing a file specified by TestInputs.
Preprocessor & preprocessor()
ASTContext & context()
Provides access to the AST context and other parts of Clang.
FileManager & fileManager()
FrontendAction & action()
TestAST & operator=(TestAST &&)
llvm::ArrayRef< StoredDiagnostic > diagnostics()
Returns diagnostics emitted during parsing.
SourceManager & sourceManager()
The JSON file list parser is used to communicate input to InstallAPI.
Language
The language for the input, used to select and validate the language standard and possible actions.