clang  12.0.0git
Public Types | Static Public Member Functions | Public Attributes | List of all members
clang::driver::ResponseFileSupport Struct Reference

#include "clang/Driver/Job.h"

Collaboration diagram for clang::driver::ResponseFileSupport:
Collaboration graph
[legend]

Public Types

enum  ResponseFileKind { RF_Full, RF_FileList, RF_None }
 

Static Public Member Functions

static constexpr ResponseFileSupport None ()
 Returns a ResponseFileSupport indicating that response files are not supported. More...
 
static constexpr ResponseFileSupport AtFileUTF8 ()
 
static constexpr ResponseFileSupport AtFileCurCP ()
 
static constexpr ResponseFileSupport AtFileUTF16 ()
 

Public Attributes

ResponseFileKind ResponseKind
 The level of support for response files. More...
 
llvm::sys::WindowsEncodingMethod ResponseEncoding
 The encoding to use when writing response files on Windows. More...
 
const char * ResponseFlag
 What prefix to use for the command-line argument when passing a response file. More...
 

Detailed Description

Definition at line 43 of file Job.h.

Member Enumeration Documentation

◆ ResponseFileKind

Enumerator
RF_Full 
RF_FileList 
RF_None 

Definition at line 44 of file Job.h.

Member Function Documentation

◆ AtFileCurCP()

static constexpr ResponseFileSupport clang::driver::ResponseFileSupport::AtFileCurCP ( )
inlinestatic

Definition at line 91 of file Job.h.

Referenced by clang::driver::tools::wasm::Linker::ConstructJob(), clang::driver::tools::minix::Assembler::ConstructJob(), clang::driver::tools::dragonfly::Assembler::ConstructJob(), clang::driver::tools::netbsd::Assembler::ConstructJob(), clang::driver::tools::ananas::Assembler::ConstructJob(), clang::driver::tools::cloudabi::Linker::ConstructJob(), clang::driver::tools::freebsd::Assembler::ConstructJob(), clang::driver::tools::openbsd::Assembler::ConstructJob(), clang::driver::tools::hexagon::Assembler::ConstructJob(), clang::driver::tools::amdgpu::Linker::ConstructJob(), clang::driver::tools::nacltools::Linker::ConstructJob(), clang::driver::tools::minix::Linker::ConstructJob(), clang::driver::tools::ananas::Linker::ConstructJob(), clang::driver::tools::dragonfly::Linker::ConstructJob(), clang::driver::tools::netbsd::Linker::ConstructJob(), clang::driver::tools::openbsd::Linker::ConstructJob(), clang::driver::tools::freebsd::Linker::ConstructJob(), clang::driver::tools::gnutools::Assembler::ConstructJob(), clang::driver::tools::hexagon::Linker::ConstructJob(), clang::driver::tools::AVR::Linker::ConstructJob(), clang::driver::tools::RISCV::Linker::ConstructJob(), clang::driver::tools::Myriad::Linker::ConstructJob(), clang::driver::tools::gnutools::Linker::ConstructJob(), clang::driver::tools::msp430::Linker::ConstructJob(), clang::driver::tools::gnutools::StaticLibTool::ConstructJob(), and clang::driver::tools::gcc::Common::ConstructJob().

◆ AtFileUTF16()

static constexpr ResponseFileSupport clang::driver::ResponseFileSupport::AtFileUTF16 ( )
inlinestatic

◆ AtFileUTF8()

static constexpr ResponseFileSupport clang::driver::ResponseFileSupport::AtFileUTF8 ( )
inlinestatic

◆ None()

static constexpr ResponseFileSupport clang::driver::ResponseFileSupport::None ( )
inlinestatic

Member Data Documentation

◆ ResponseEncoding

llvm::sys::WindowsEncodingMethod clang::driver::ResponseFileSupport::ResponseEncoding

The encoding to use when writing response files on Windows.

Ignored on other host OSes.

Windows use cases: - GCC and Binutils on mingw only accept ANSI response files encoded with the system current code page.

  • MSVC's CL.exe and LINK.exe accept UTF16 on Windows.
  • Clang accepts both UTF8 and UTF16.

FIXME: When GNU tools learn how to parse UTF16 on Windows, we should always use UTF16 for Windows, which is the Windows official encoding for international characters.

Definition at line 69 of file Job.h.

◆ ResponseFlag

const char* clang::driver::ResponseFileSupport::ResponseFlag

What prefix to use for the command-line argument when passing a response file.

Definition at line 73 of file Job.h.

Referenced by skipArgs().

◆ ResponseKind

ResponseFileKind clang::driver::ResponseFileSupport::ResponseKind

The level of support for response files.

Definition at line 56 of file Job.h.

Referenced by clang::driver::Driver::generateCompilationDiagnostics(), and skipArgs().


The documentation for this struct was generated from the following file: