ΒΆbool readConfigFile(
llvm::StringRef CfgFileName,
llvm::StringSaver& Saver,
SmallVectorImpl<const char*>& Argv)
bool readConfigFile(
llvm::StringRef CfgFileName,
llvm::StringSaver& Saver,
SmallVectorImpl<const char*>& Argv)
Description
Reads command line options from the given configuration file. It reads content of the specified file, tokenizes it and expands "@file" commands resolving file names in them relative to the directory where CfgFilename resides. It also expands "<CFGDIR>" to the base path of the current config file.
Declared at: llvm/include/llvm/Support/CommandLine.h:2072
Parameters
- llvm::StringRef CfgFileName
- Path to configuration file.
- llvm::StringSaver& Saver
- Objects that saves allocated strings.
- SmallVectorImpl<const char*>& Argv
- Array to which the read options are added.
Returns
true if the file was successfully read.