The result of parsing a file specified by TestInputs.
More...
#include "clang/Testing/TestAST.h"
The result of parsing a file specified by TestInputs.
The ASTContext, Sema etc are valid as long as this object is alive.
Definition at line 68 of file TestAST.h.
◆ TestAST() [1/3]
Constructing a TestAST parses the virtual file.
To keep tests terse, critical errors (e.g. invalid flags) are reported as unit test failures with ADD_FAILURE() and produce an empty ASTContext, Sema etc. This frees the test code from handling these explicitly.
Definition at line 76 of file TestAST.cpp.
References clang::getCC1ArgsForTesting().
◆ TestAST() [2/3]
clang::TestAST::TestAST |
( |
StringRef |
Code | ) |
|
|
inline |
◆ TestAST() [3/3]
clang::TestAST::TestAST |
( |
TestAST && |
M | ) |
|
◆ ~TestAST()
clang::TestAST::~TestAST |
( |
| ) |
|
◆ action()
◆ context()
Provides access to the AST context and other parts of Clang.
Definition at line 83 of file TestAST.h.
◆ diagnostics()
Returns diagnostics emitted during parsing.
(By default, errors cause test failures, see TestInputs::ErrorOK).
Definition at line 92 of file TestAST.h.
◆ fileManager()
◆ operator=()
◆ preprocessor()
◆ sema()
Sema& clang::TestAST::sema |
( |
| ) |
|
|
inline |
◆ sourceManager()
The documentation for this class was generated from the following files: