class SLocEntry
Declaration
class SLocEntry { /* full declaration omitted */ };
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.
Declared at: clang/include/clang/Basic/SourceManager.h:468
Member Variables
- private SourceLocation::UIntTy Offset
- private SourceLocation::UIntTy IsExpansion
- private anonymous struct / union
- private static const int OffsetBits = 8 * sizeof(unsigned int) - 1
Method Overview
- public SLocEntry()
- public static clang::SrcMgr::SLocEntry get(SourceLocation::UIntTy Offset, const clang::SrcMgr::FileInfo & FI)
- public static clang::SrcMgr::SLocEntry get(SourceLocation::UIntTy Offset, const clang::SrcMgr::ExpansionInfo & Expansion)
- public const clang::SrcMgr::ExpansionInfo & getExpansion() const
- public const clang::SrcMgr::FileInfo & getFile() const
- public SourceLocation::UIntTy getOffset() const
- public bool isExpansion() const
- public bool isFile() const
Methods
¶SLocEntry()
SLocEntry()
Declared at: clang/include/clang/Basic/SourceManager.h:478
¶static clang::SrcMgr::SLocEntry get(
SourceLocation::UIntTy Offset,
const clang::SrcMgr::FileInfo& FI)
static clang::SrcMgr::SLocEntry get(
SourceLocation::UIntTy Offset,
const clang::SrcMgr::FileInfo& FI)
Declared at: clang/include/clang/Basic/SourceManager.h:495
Parameters
- SourceLocation::UIntTy Offset
- const clang::SrcMgr::FileInfo& FI
¶static clang::SrcMgr::SLocEntry get(
SourceLocation::UIntTy Offset,
const clang::SrcMgr::ExpansionInfo& Expansion)
static clang::SrcMgr::SLocEntry get(
SourceLocation::UIntTy Offset,
const clang::SrcMgr::ExpansionInfo& Expansion)
Declared at: clang/include/clang/Basic/SourceManager.h:504
Parameters
- SourceLocation::UIntTy Offset
- const clang::SrcMgr::ExpansionInfo& Expansion
¶const clang::SrcMgr::ExpansionInfo& getExpansion()
const
const clang::SrcMgr::ExpansionInfo& getExpansion()
const
Declared at: clang/include/clang/Basic/SourceManager.h:490
¶const clang::SrcMgr::FileInfo& getFile() const
const clang::SrcMgr::FileInfo& getFile() const
Declared at: clang/include/clang/Basic/SourceManager.h:485
¶SourceLocation::UIntTy getOffset() const
SourceLocation::UIntTy getOffset() const
Declared at: clang/include/clang/Basic/SourceManager.h:480
¶bool isExpansion() const
bool isExpansion() const
Declared at: clang/include/clang/Basic/SourceManager.h:482
¶bool isFile() const
bool isFile() const
Declared at: clang/include/clang/Basic/SourceManager.h:483