clang-tools 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::clangd::CommandMangler Struct Reference

#include <CompileCommands.h>

Public Member Functions

void operator() (tooling::CompileCommand &Cmd, llvm::StringRef TargetFile) const
 

Static Public Member Functions

static CommandMangler forTests ()
 
static CommandMangler detect ()
 

Public Attributes

std::optional< std::string > ClangPath
 
std::optional< std::string > ResourceDir
 
std::optional< std::string > Sysroot
 
SystemIncludeExtractorFn SystemIncludeExtractor
 

Detailed Description

Definition at line 30 of file CompileCommands.h.

Member Function Documentation

◆ detect()

CommandMangler clang::clangd::CommandMangler::detect ( )
static

Definition at line 189 of file CompileCommands.cpp.

Referenced by main().

◆ forTests()

CommandMangler clang::clangd::CommandMangler::forTests ( )
static

Definition at line 197 of file CompileCommands.cpp.

Referenced by clang::clangd::TestTU::inputs(), and clang::clangd::TEST_F().

◆ operator()()

void clang::clangd::CommandMangler::operator() ( tooling::CompileCommand &  Cmd,
llvm::StringRef  TargetFile 
) const

Member Data Documentation

◆ ClangPath

std::optional<std::string> clang::clangd::CommandMangler::ClangPath

Definition at line 32 of file CompileCommands.h.

Referenced by operator()().

◆ ResourceDir

std::optional<std::string> clang::clangd::CommandMangler::ResourceDir

Definition at line 34 of file CompileCommands.h.

Referenced by operator()().

◆ Sysroot

std::optional<std::string> clang::clangd::CommandMangler::Sysroot

Definition at line 36 of file CompileCommands.h.

Referenced by operator()().

◆ SystemIncludeExtractor

SystemIncludeExtractorFn clang::clangd::CommandMangler::SystemIncludeExtractor

Definition at line 37 of file CompileCommands.h.

Referenced by operator()().


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