ΒΆvoid TokenizeGNUCommandLine(
    llvm::StringRef Source,
    llvm::StringSaver& Saver,
    SmallVectorImpl<const char*>& NewArgv,
    bool MarkEOLs = false)

Description

The quoting rules match those used by GCC and other tools that use libiberty's buildargv() or expandargv() utilities, and do not match bash. They differ from buildargv() on treatment of backslashes that do not escape a special character to make it possible to accept most Windows file paths.

Declared at: llvm/include/llvm/Support/CommandLine.h:2012

Parameters

llvm::StringRef Source
The string to be split on whitespace with quotes.
llvm::StringSaver& Saver
Delegates back to the caller for saving parsed strings.
SmallVectorImpl<const char*>& NewArgv
All parsed strings are appended to NewArgv.
bool MarkEOLs = false
true if tokenizing a response file and you want end of lines and end of the response file to be marked with a nullptr string.