LLVM API Documentation

Classes | Namespaces | Functions
Path.h File Reference
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/DataTypes.h"
#include <iterator>
Include dependency graph for Path.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::sys::path::const_iterator
 Path iterator. More...
class  llvm::sys::path::reverse_iterator
 Reverse path iterator. More...

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


namespace  llvm::sys
namespace  llvm::sys::path

Functions

void llvm::sys::path::remove_filename (SmallVectorImpl< char > &path)
 Remove the last component from path unless it is the root dir.
void llvm::sys::path::replace_extension (SmallVectorImpl< char > &path, const Twine &extension)
 Replace the file extension of path with extension.
void llvm::sys::path::append (SmallVectorImpl< char > &path, const Twine &a, const Twine &b="", const Twine &c="", const Twine &d="")
 Append to path.
void llvm::sys::path::append (SmallVectorImpl< char > &path, const_iterator begin, const_iterator end)
 Append to path.
void llvm::sys::path::native (const Twine &path, SmallVectorImpl< char > &result)
void llvm::sys::path::native (SmallVectorImpl< char > &path)
StringRef llvm::sys::path::root_name (StringRef path)
 Get root name.
StringRef llvm::sys::path::root_directory (StringRef path)
 Get root directory.
StringRef llvm::sys::path::root_path (StringRef path)
 Get root path.
StringRef llvm::sys::path::relative_path (StringRef path)
 Get relative path.
StringRef llvm::sys::path::parent_path (StringRef path)
 Get parent path.
StringRef llvm::sys::path::filename (StringRef path)
 Get filename.
StringRef llvm::sys::path::stem (StringRef path)
 Get stem.
StringRef llvm::sys::path::extension (StringRef path)
 Get extension.
bool llvm::sys::path::is_separator (char value)
 Check whether the given char is a path separator on the host OS.
StringRef llvm::sys::path::get_separator ()
 Return the preferred separator for this platform.
void llvm::sys::path::system_temp_directory (bool erasedOnReboot, SmallVectorImpl< char > &result)
 Get the typical temporary directory for the system, e.g., "/var/tmp" or "C:/TEMP".
bool llvm::sys::path::home_directory (SmallVectorImpl< char > &result)
 Get the user's home directory.
bool llvm::sys::path::has_root_name (const Twine &path)
 Has root name?
bool llvm::sys::path::has_root_directory (const Twine &path)
 Has root directory?
bool llvm::sys::path::has_root_path (const Twine &path)
 Has root path?
bool llvm::sys::path::has_relative_path (const Twine &path)
 Has relative path?
bool llvm::sys::path::has_parent_path (const Twine &path)
 Has parent path?
bool llvm::sys::path::has_filename (const Twine &path)
 Has filename?
bool llvm::sys::path::has_stem (const Twine &path)
 Has stem?
bool llvm::sys::path::has_extension (const Twine &path)
 Has extension?
bool llvm::sys::path::is_absolute (const Twine &path)
 Is path absolute?
bool llvm::sys::path::is_relative (const Twine &path)
 Is path relative?
Lexical Component Iterator
const_iterator llvm::sys::path::begin (StringRef path)
 Get begin iterator over path.
const_iterator llvm::sys::path::end (StringRef path)
 Get end iterator over path.
reverse_iterator llvm::sys::path::rbegin (StringRef path)
 Get reverse begin iterator over path.
reverse_iterator llvm::sys::path::rend (StringRef path)
 Get reverse end iterator over path.