clang 17.0.0git
Public Member Functions | Public Attributes | List of all members
clang::index::SerializablePathCollection Class Reference

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

#include "clang/IndexSerialization/SerializablePathCollection.h"

Collaboration diagram for clang::index::SerializablePathCollection:
Collaboration graph

Public Member Functions

 SerializablePathCollection (llvm::StringRef CurrentWorkDir, llvm::StringRef SysRoot, llvm::StringRef OutputFile)
llvm::StringRef getPathsBuffer () const
ArrayRef< PathPool::FilePathgetFilePaths () const
size_t tryStoreFilePath (const clang::FileEntry &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.

Member Function Documentation

◆ getFilePaths()

ArrayRef< PathPool::FilePath > clang::index::SerializablePathCollection::getFilePaths ( ) const
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
buffer containing all the paths.

Definition at line 103 of file SerializablePathCollection.h.

◆ tryStoreFilePath()

size_t SerializablePathCollection::tryStoreFilePath ( const clang::FileEntry FE)

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

index to array exposed by getPathsBuffer().

Definition at line 48 of file SerializablePathCollection.cpp.

References clang::index::PathPool::addFilePath(), and clang::FileEntry::getName().

Member Data Documentation

◆ OutputFilePath

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

Definition at line 96 of file SerializablePathCollection.h.

◆ SysRootPath

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

Definition at line 95 of file SerializablePathCollection.h.

◆ WorkDirPath

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

Definition at line 94 of file SerializablePathCollection.h.

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