A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/structclang_1_1TestInputs.html below:

clang: clang::TestInputs Struct Reference

Specifies a virtual source file to be parsed as part of a test. More...

#include "clang/Testing/TestAST.h"

std::string  Code   The source code of the input file to be parsed.
  TestLanguage  Language = TestLanguage::Lang_OBJCXX   The language to parse as.
  std::vector< std::string >  ExtraArgs = {}   Extra argv to pass to clang -cc1.
  llvm::StringMap< std::string >  ExtraFiles = {}   Extra virtual files that are available to be #included.
  std::string  WorkingDir   Root of execution, all relative paths in Args/Files are resolved against this.
  std::string  FileName   Filename to use for translation unit. A default will be used when empty.
  bool  ErrorOK = false   By default, error diagnostics during parsing are reported as gtest errors.
  std::function< std::unique_ptr< FrontendAction >()>  MakeAction   The action used to parse the code.
 

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 ) inline

Definition at line 36 of file TestAST.h.

◆ Code std::string clang::TestInputs::Code

The source code of the input file to be parsed.

Definition at line 39 of file TestAST.h.

◆ ErrorOK

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 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::FileName

Filename to use for translation unit. A default will be used when empty.

Definition at line 57 of file TestAST.h.

◆ Language

The 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::WorkingDir

Root 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