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

#include "clang/Driver/Job.h"

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.
 
static constexpr ResponseFileSupport AtFileUTF8 ()
 
static constexpr ResponseFileSupport AtFileCurCP ()
 
static constexpr ResponseFileSupport AtFileUTF16 ()
 

Public Attributes

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

Detailed Description

Definition at line 44 of file Job.h.

Member Enumeration Documentation

◆ ResponseFileKind

Enumerator
RF_Full 
RF_FileList 
RF_None 

Definition at line 45 of file Job.h.

Member Function Documentation

◆ AtFileCurCP()

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

Definition at line 92 of file Job.h.

References RF_Full.

Referenced by clang::driver::tools::amdgpu::Linker::ConstructJob(), clang::driver::tools::AVR::Linker::ConstructJob(), clang::driver::tools::baremetal::StaticLibTool::ConstructJob(), clang::driver::tools::baremetal::Linker::ConstructJob(), clang::driver::tools::CSKY::Linker::ConstructJob(), clang::driver::tools::dragonfly::Assembler::ConstructJob(), clang::driver::tools::dragonfly::Linker::ConstructJob(), clang::driver::tools::freebsd::Assembler::ConstructJob(), clang::driver::tools::freebsd::Linker::ConstructJob(), clang::driver::tools::fuchsia::StaticLibTool::ConstructJob(), clang::driver::tools::fuchsia::Linker::ConstructJob(), clang::driver::tools::gnutools::Assembler::ConstructJob(), clang::driver::tools::gnutools::Linker::ConstructJob(), clang::driver::tools::gnutools::StaticLibTool::ConstructJob(), clang::driver::tools::gcc::Common::ConstructJob(), clang::driver::tools::haiku::Linker::ConstructJob(), clang::driver::tools::hexagon::Assembler::ConstructJob(), clang::driver::tools::hexagon::Linker::ConstructJob(), clang::driver::tools::msp430::Linker::ConstructJob(), clang::driver::tools::nacltools::Linker::ConstructJob(), clang::driver::tools::netbsd::Assembler::ConstructJob(), clang::driver::tools::netbsd::Linker::ConstructJob(), clang::driver::tools::openbsd::Assembler::ConstructJob(), clang::driver::tools::openbsd::Linker::ConstructJob(), clang::driver::tools::RISCV::Linker::ConstructJob(), clang::driver::tools::wasm::Linker::ConstructJob(), and GetSDLFromOffloadArchive().

◆ AtFileUTF16()

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

◆ AtFileUTF8()

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

◆ None()

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

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 70 of file Job.h.

Referenced by clang::driver::Command::Execute().

◆ ResponseFlag

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

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

Definition at line 74 of file Job.h.

Referenced by clang::driver::Command::setResponseFile().

◆ ResponseKind

ResponseFileKind clang::driver::ResponseFileSupport::ResponseKind

The level of support for response files.

Definition at line 57 of file Job.h.

Referenced by clang::driver::Command::Print().


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