clang 22.0.0git
DependencyScanningTool.cpp File Reference

Go to the source code of this file.

Functions

static std::vector< std::string > buildCC1CommandLine (const driver::Command &Cmd)
 Constructs the full -cc1 command line, including executable, for the given driver Cmd.
static std::optional< std::vector< std::string > > getFirstCC1CommandLine (ArrayRef< std::string > CommandLine, DiagnosticsEngine &Diags, llvm::IntrusiveRefCntPtr< llvm::vfs::OverlayFileSystem > ScanFS)
static llvm::Error makeErrorFromDiagnosticsOS (TextDiagnosticsPrinterWithOutput &DiagPrinterWithOS)

Function Documentation

◆ buildCC1CommandLine()

std::vector< std::string > buildCC1CommandLine ( const driver::Command & Cmd)
static

Constructs the full -cc1 command line, including executable, for the given driver Cmd.

Definition at line 183 of file DependencyScanningTool.cpp.

References clang::driver::Command::getArguments(), and clang::driver::Command::getExecutable().

Referenced by getFirstCC1CommandLine().

◆ getFirstCC1CommandLine()

std::optional< std::vector< std::string > > getFirstCC1CommandLine ( ArrayRef< std::string > CommandLine,
DiagnosticsEngine & Diags,
llvm::IntrusiveRefCntPtr< llvm::vfs::OverlayFileSystem > ScanFS )
static

◆ makeErrorFromDiagnosticsOS()