clang
15.0.0git
|
Specifies a virtual source file to be parsed as part of a test. More...
#include "clang/Testing/TestAST.h"
Public Member Functions | |
TestInputs ()=default | |
TestInputs (StringRef Code) | |
Public Attributes | |
std::string | Code |
The source code of the input file to be parsed. More... | |
TestLanguage | Language = TestLanguage::Lang_OBJCXX |
The language to parse as. More... | |
std::vector< std::string > | ExtraArgs = {} |
Extra argv to pass to clang -cc1. More... | |
llvm::StringMap< std::string > | ExtraFiles = {} |
Extra virtual files that are available to be #included. More... | |
bool | ErrorOK = false |
By default, error diagnostics during parsing are reported as gtest errors. More... | |
Specifies a virtual source file to be parsed as part of a test.
|
default |
std::string clang::TestInputs::Code |
The source code of the input file to be parsed.
Definition at line 39 of file TestAST.h.
Referenced by clang::TestAST::TestAST().
By default, error diagnostics during parsing are reported as gtest errors.
To suppress this, set ErrorOK or include "error-ok" in a comment in Code. In either case, all diagnostics appear in TestAST::diagnostics().
Definition at line 55 of file TestAST.h.
Referenced by clang::TestAST::TestAST().
std::vector<std::string> clang::TestInputs::ExtraArgs = {} |
llvm::StringMap<std::string> clang::TestInputs::ExtraFiles = {} |
TestLanguage clang::TestInputs::Language = TestLanguage::Lang_OBJCXX |
The language to parse as.
This affects the -x and -std flags used, and the filename.
Definition at line 43 of file TestAST.h.
Referenced by clang::TestAST::TestAST().