LLDB  mainline
Functions
CppModuleConfiguration.cpp File Reference
#include "CppModuleConfiguration.h"
#include "ClangHost.h"
#include "lldb/Host/FileSystem.h"
#include "llvm/ADT/Triple.h"
Include dependency graph for CppModuleConfiguration.cpp:

Go to the source code of this file.

Functions

static llvm::SmallVector< std::string, 2 > getTargetIncludePaths (const llvm::Triple &triple)
 
static llvm::Optional< llvm::StringRef > guessIncludePath (llvm::StringRef path_to_file, llvm::StringRef pattern)
 Returns the include path matching the given pattern for the given file path (or None if the path doesn't match the pattern). More...
 
static std::string MakePath (llvm::StringRef lhs, llvm::StringRef rhs)
 Utility function for just appending two paths. More...
 

Function Documentation

◆ getTargetIncludePaths()

static llvm::SmallVector<std::string, 2> getTargetIncludePaths ( const llvm::Triple &  triple)
static

◆ guessIncludePath()

static llvm::Optional<llvm::StringRef> guessIncludePath ( llvm::StringRef  path_to_file,
llvm::StringRef  pattern 
)
static

Returns the include path matching the given pattern for the given file path (or None if the path doesn't match the pattern).

Definition at line 51 of file CppModuleConfiguration.cpp.

Referenced by lldb_private::CppModuleConfiguration::analyzeFile().

◆ MakePath()

static std::string MakePath ( llvm::StringRef  lhs,
llvm::StringRef  rhs 
)
static

Utility function for just appending two paths.

Definition at line 100 of file CppModuleConfiguration.cpp.

References string().

Referenced by lldb_private::CppModuleConfiguration::hasValidConfig().