CppInterOp
C++ Language Interoperability Layer
Loading...
Searching...
No Matches
Namespaces | Macros | Functions
Paths.cpp File Reference
#include "Paths.h"
#include "Compatibility.h"
#include "clang/Basic/FileManager.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
Include dependency graph for Paths.cpp:

Go to the source code of this file.

Namespaces

namespace  CppInternal
 
namespace  CppInternal::utils
 
namespace  CppInternal::utils::platform
 

Macros

#define DEBUG_TYPE   "LogNonExistentDirectory"
 
#define DEBUG_TYPE   "SplitPths"
 
#define DEBUG_TYPE   "AddIncludePaths"
 

Functions

bool CppInternal::utils::platform::GetSystemLibraryPaths (llvm::SmallVectorImpl< std::string > &Paths)
 
std::string CppInternal::utils::platform::NormalizePath (const std::string &Path)
 Returns a normalized version of the given Path.
 
void CppInternal::utils::CopyIncludePaths (const clang::HeaderSearchOptions &Opts, llvm::SmallVectorImpl< std::string > &Paths, bool WithSystem, bool WithFlags)
 Copies the current include paths into the HeaderSearchOptions.
 
void CppInternal::utils::LogNonExistentDirectory (llvm::StringRef Path)
 Write to cling::errs that directory does not exist in a format matching what 'clang -v' would do.
 
bool CppInternal::utils::SplitPaths (llvm::StringRef PathStr, llvm::SmallVectorImpl< llvm::StringRef > &Paths, SplitMode Mode=kPruneNonExistent, llvm::StringRef Delim=CppInternal::utils::platform::kEnvDelim, bool Verbose=false)
 Collect the constituent paths from a PATH string.
 
void CppInternal::utils::AddIncludePaths (llvm::StringRef PathStr, clang::HeaderSearchOptions &HOpts, const char *Delim=CppInternal::utils::platform::kEnvDelim)
 Adds multiple include paths separated by a delimiter into the given HeaderSearchOptions.
 

Macro Definition Documentation

◆ DEBUG_TYPE [1/3]

#define DEBUG_TYPE   "LogNonExistentDirectory"

◆ DEBUG_TYPE [2/3]

#define DEBUG_TYPE   "SplitPths"

◆ DEBUG_TYPE [3/3]

#define DEBUG_TYPE   "AddIncludePaths"