ΒΆvoid TokenizeWindowsCommandLineFull(
llvm::StringRef Source,
llvm::StringSaver& Saver,
SmallVectorImpl<const char*>& NewArgv,
bool MarkEOLs = false)
void TokenizeWindowsCommandLineFull(
llvm::StringRef Source,
llvm::StringSaver& Saver,
SmallVectorImpl<const char*>& NewArgv,
bool MarkEOLs = false)
Description
Tokenizes a Windows full command line, including command name at the start. This uses the same syntax rules as TokenizeWindowsCommandLine for all but the first token. But the first token is expected to be parsed as the executable file name in the way CreateProcess would do it, rather than the way the C library startup code would do it: CreateProcess does not consider that \ is ever an escape character (because " is not a valid filename char, hence there's never a need to escape it to be used literally). Parameters are the same as for TokenizeWindowsCommandLine. In particular, if you set MarkEOLs = true, then the first word of every line will be parsed using the special rules for command names, making this function suitable for parsing a file full of commands to execute.
Declared at: llvm/include/llvm/Support/CommandLine.h:2037
Parameters
- llvm::StringRef Source
- llvm::StringSaver& Saver
- SmallVectorImpl<const char*>& NewArgv
- bool MarkEOLs = false