Specifies a virtual source file to be parsed as part of a test. More...
#include "clang/Testing/TestAST.h"
Specifies a virtual source file to be parsed as part of a test.
Definition at line 34 of file TestAST.h.
◆ TestInputs() [1/2] clang::TestInputs::TestInputs ( ) default ◆ TestInputs() [2/2] clang::TestInputs::TestInputs ( StringRef Code ) inlineDefinition at line 36 of file TestAST.h.
◆ Code std::string clang::TestInputs::CodeThe source code of the input file to be parsed.
Definition at line 39 of file TestAST.h.
◆ ErrorOKBy 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 62 of file TestAST.h.
◆ ExtraArgs std::vector<std::string> clang::TestInputs::ExtraArgs = {}Extra argv to pass to clang -cc1.
Definition at line 46 of file TestAST.h.
◆ ExtraFiles llvm::StringMap<std::string> clang::TestInputs::ExtraFiles = {}Extra virtual files that are available to be #included.
Keys are plain filenames ("foo.h"), values are file content.
Definition at line 50 of file TestAST.h.
◆ FileName std::string clang::TestInputs::FileNameFilename to use for translation unit. A default will be used when empty.
Definition at line 57 of file TestAST.h.
◆ LanguageThe language to parse as.
This affects the -x and -std flags used, and the filename.
Definition at line 43 of file TestAST.h.
◆ MakeAction std::function<std::unique_ptr<FrontendAction>()> clang::TestInputs::MakeAction ◆ WorkingDir std::string clang::TestInputs::WorkingDirRoot of execution, all relative paths in Args/Files are resolved against this.
Definition at line 54 of file TestAST.h.
The documentation for this struct was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4