clang 22.0.0git
clang::index::SerializablePathCollection Class Reference

Stores file paths and produces serialization-friendly representation. More...

#include "clang/IndexSerialization/SerializablePathCollection.h"

Public Member Functions

 SerializablePathCollection (llvm::StringRef CurrentWorkDir, llvm::StringRef SysRoot, llvm::StringRef OutputFile)
llvm::StringRef getPathsBuffer () const
ArrayRef< PathPool::FilePathgetFilePaths () const
size_t tryStoreFilePath (FileEntryRef FE)
 Stores path to FE if it hasn't been stored yet.

Public Attributes

const StringPool::StringOffsetSize WorkDirPath
const StringPool::StringOffsetSize SysRootPath
const StringPool::StringOffsetSize OutputFilePath

Detailed Description

Stores file paths and produces serialization-friendly representation.

Definition at line 85 of file SerializablePathCollection.h.

Constructor & Destructor Documentation

◆ SerializablePathCollection()

SerializablePathCollection::SerializablePathCollection ( llvm::StringRef CurrentWorkDir,
llvm::StringRef SysRoot,
llvm::StringRef OutputFile )

Definition at line 39 of file SerializablePathCollection.cpp.

References OutputFilePath, SysRootPath, and WorkDirPath.

Member Function Documentation

◆ getFilePaths()

ArrayRef< PathPool::FilePath > clang::index::SerializablePathCollection::getFilePaths ( ) const
inline
Returns
file paths (no directories) backed by buffer exposed in getPathsBuffer.

Definition at line 107 of file SerializablePathCollection.h.

◆ getPathsBuffer()

llvm::StringRef clang::index::SerializablePathCollection::getPathsBuffer ( ) const
inline
Returns
buffer containing all the paths.

Definition at line 103 of file SerializablePathCollection.h.

◆ tryStoreFilePath()

size_t SerializablePathCollection::tryStoreFilePath ( FileEntryRef FE)

Stores path to FE if it hasn't been stored yet.

Returns
index to array exposed by getPathsBuffer().

Definition at line 48 of file SerializablePathCollection.cpp.

References clang::FileEntryRef::getName().

Member Data Documentation

◆ OutputFilePath

const StringPool::StringOffsetSize clang::index::SerializablePathCollection::OutputFilePath

Definition at line 96 of file SerializablePathCollection.h.

Referenced by SerializablePathCollection().

◆ SysRootPath

const StringPool::StringOffsetSize clang::index::SerializablePathCollection::SysRootPath

Definition at line 95 of file SerializablePathCollection.h.

Referenced by SerializablePathCollection().

◆ WorkDirPath

const StringPool::StringOffsetSize clang::index::SerializablePathCollection::WorkDirPath

Definition at line 94 of file SerializablePathCollection.h.

Referenced by SerializablePathCollection().


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