clang API Documentation

Public Member Functions | Static Public Member Functions
clang::SrcMgr::SLocEntry Class Reference

This is a discriminated union of FileInfo and ExpansionInfo. More...

#include <SourceManager.h>

Collaboration diagram for clang::SrcMgr::SLocEntry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned getOffset () const
bool isExpansion () const
bool isFile () const
const FileInfogetFile () const
const ExpansionInfogetExpansion () const

Static Public Member Functions

static SLocEntry get (unsigned Offset, const FileInfo &FI)
static SLocEntry get (unsigned Offset, const ExpansionInfo &Expansion)

Detailed Description

This is a discriminated union of FileInfo and ExpansionInfo.

SourceManager keeps an array of these objects, and they are uniquely identified by the FileID datatype.

Definition at line 404 of file SourceManager.h.


Member Function Documentation

static SLocEntry clang::SrcMgr::SLocEntry::get ( unsigned  Offset,
const FileInfo FI 
) [inline, static]

Definition at line 426 of file SourceManager.h.

References File.

static SLocEntry clang::SrcMgr::SLocEntry::get ( unsigned  Offset,
const ExpansionInfo Expansion 
) [inline, static]

Definition at line 433 of file SourceManager.h.

References Expansion.

const FileInfo& clang::SrcMgr::SLocEntry::getFile ( ) const [inline]

Member Data Documentation

Definition at line 408 of file SourceManager.h.

Referenced by get(), and getExpansion().

Definition at line 407 of file SourceManager.h.

Referenced by get(), and getFile().


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