clang  6.0.0svn
Static Public Member Functions | Public Attributes | List of all members
clang::LineEntry Struct Reference

#include "clang/Basic/SourceManagerInternals.h"

Collaboration diagram for clang::LineEntry:
Collaboration graph
[legend]

Static Public Member Functions

static LineEntry get (unsigned Offs, unsigned Line, int Filename, SrcMgr::CharacteristicKind FileKind, unsigned IncludeOffset)
 

Public Attributes

unsigned FileOffset
 The offset in this file that the line entry occurs at. More...
 
unsigned LineNo
 The presumed line number of this line entry: #line 4. More...
 
int FilenameID
 The ID of the filename identified by this line entry: #line 4 "foo.c". More...
 
SrcMgr::CharacteristicKind FileKind
 Set the 0 if no flags, 1 if a system header,. More...
 
unsigned IncludeOffset
 The offset of the virtual include stack location, which is manipulated by GNU linemarker directives. More...
 

Detailed Description

Definition at line 33 of file SourceManagerInternals.h.

Member Function Documentation

◆ get()

static LineEntry clang::LineEntry::get ( unsigned  Offs,
unsigned  Line,
int  Filename,
SrcMgr::CharacteristicKind  FileKind,
unsigned  IncludeOffset 
)
inlinestatic

Definition at line 53 of file SourceManagerInternals.h.

Referenced by clang::LineTableInfo::AddLineNote().

Member Data Documentation

◆ FileKind

SrcMgr::CharacteristicKind clang::LineEntry::FileKind

Set the 0 if no flags, 1 if a system header,.

Definition at line 45 of file SourceManagerInternals.h.

Referenced by clang::SourceManager::getFileCharacteristic(), and clang::LineTableInfo::getNumFilenames().

◆ FilenameID

int clang::LineEntry::FilenameID

The ID of the filename identified by this line entry: #line 4 "foo.c".

This is -1 if not specified.

Definition at line 42 of file SourceManagerInternals.h.

Referenced by clang::LineTableInfo::getNumFilenames().

◆ FileOffset

unsigned clang::LineEntry::FileOffset

The offset in this file that the line entry occurs at.

Definition at line 35 of file SourceManagerInternals.h.

Referenced by clang::operator<().

◆ IncludeOffset

unsigned clang::LineEntry::IncludeOffset

The offset of the virtual include stack location, which is manipulated by GNU linemarker directives.

If this is 0 then there is no virtual #includer.

Definition at line 51 of file SourceManagerInternals.h.

◆ LineNo

unsigned clang::LineEntry::LineNo

The presumed line number of this line entry: #line 4.

Definition at line 38 of file SourceManagerInternals.h.

Referenced by clang::LineTableInfo::getNumFilenames().


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