LLVM: llvm:🆑:ExpansionContext Class Reference (original) (raw)

Contains options that control response file expansion. More...

#include "[llvm/Support/CommandLine.h](CommandLine%5F8h%5Fsource.html)"

Public Member Functions
LLVM_ABI ExpansionContext (BumpPtrAllocator &A, TokenizerCallback T, vfs::FileSystem *FS=nullptr)
ExpansionContext & setMarkEOLs (bool X)
ExpansionContext & setRelativeNames (bool X)
ExpansionContext & setCurrentDir (StringRef X)
ExpansionContext & setSearchDirs (ArrayRef< StringRef > X)
ExpansionContext & setVFS (vfs::FileSystem *X)
LLVM_ABI bool findConfigFile (StringRef FileName, SmallVectorImpl< char > &FilePath)
Looks for the specified configuration file.
LLVM_ABI Error readConfigFile (StringRef CfgFile, SmallVectorImpl< const char * > &Argv)
Reads command line options from the given configuration file.
LLVM_ABI Error expandResponseFiles (SmallVectorImpl< const char * > &Argv)
Expands constructs "@file" in the provided array of arguments recursively.

Contains options that control response file expansion.

Definition at line 2189 of file CommandLine.h.

â—† expandResponseFiles()

Expands constructs "@file" in the provided array of arguments recursively.

Expand response files on a command line recursively using the given StringSaver and tokenization strategy.

Definition at line 1251 of file CommandLine.cpp.

References llvm::sys::path::append(), assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallString< InternalLen >::c_str(), llvm::createStringError(), llvm::drop_begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::vfs::Status::equivalent(), llvm::SmallVectorImpl< T >::erase(), F, llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), I, llvm::SmallVectorImpl< T >::insert(), llvm::sys::path::is_relative(), llvm::no_such_file_or_directory, llvm::SmallVectorTemplateBase< T, bool >::pop_back(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::SmallVectorTemplateCommon< T, typename >::size(), and llvm::Error::success().

Referenced by llvm:🆑:ExpandResponseFiles(), llvm:🆑:expandResponseFiles(), and readConfigFile().

â—† findConfigFile()

Looks for the specified configuration file.

Parameters

[in] FileName Name of the file to search for.
[out] FilePath File absolute path, if it was found.

Returns

True if file was found.

If the specified file name contains a directory separator, it is searched for by its absolute path. Otherwise looks for file sequentially in directories specified by SearchDirs field.

Definition at line 1407 of file CommandLine.cpp.

References llvm::sys::path::append(), llvm::SmallString< InternalLen >::assign(), llvm::SmallVectorImpl< T >::assign(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::sys::path::has_parent_path(), llvm::sys::path::is_relative(), llvm::sys::path::native, and llvm::sys::fs::regular_file.

â—† readConfigFile()

â—† setCurrentDir()

â—† setMarkEOLs()

â—† setRelativeNames()

â—† setSearchDirs()

â—† setVFS()


The documentation for this class was generated from the following files: