CommandlineProcessing::validateBackendCompileOnlyCommandLine
Enforce the final per‐translation‐unit backend compile contract.
Synopsis
Declared in <commandlineProcessing/commandline_processing.h>
[[visibility]]
void
validateBackendCompileOnlyCommandLine(
std::vector<std::string> const& argList,
std::string const& expectedSource);
Description
The command must be compile‐only, contain exactly one source operand (the expected source), and contain exactly one structurally valid ‐o OUTPUT pair. Values owned by options such as ‐include are not source operands, even when their suffix looks like source code.
Violations are internal compiler errors and abort immediately.
Parameters
Name |
Description |
argList |
Final backend command, including the compiler executable. |
expectedSource |
Exact source operand owned by this translation unit. |
Created with MrDocs