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

Describes the bounds (start, size) of the preamble and a flag required by PreprocessorOptions::PrecompiledPreambleBytes. More...

#include "clang/Lex/Lexer.h"

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

Public Member Functions

 PreambleBounds (unsigned Size, bool PreambleEndsAtStartOfLine)
 

Public Attributes

unsigned Size
 Size of the preamble in bytes. More...
 
bool PreambleEndsAtStartOfLine
 Whether the preamble ends at the start of a new line. More...
 

Detailed Description

Describes the bounds (start, size) of the preamble and a flag required by PreprocessorOptions::PrecompiledPreambleBytes.

The preamble includes the BOM, if any.

Definition at line 59 of file Lexer.h.

Constructor & Destructor Documentation

◆ PreambleBounds()

clang::PreambleBounds::PreambleBounds ( unsigned  Size,
bool  PreambleEndsAtStartOfLine 
)
inline

Definition at line 69 of file Lexer.h.

Member Data Documentation

◆ PreambleEndsAtStartOfLine

bool clang::PreambleBounds::PreambleEndsAtStartOfLine

Whether the preamble ends at the start of a new line.

Used to inform the lexer as to whether it's starting at the beginning of a line after skipping the preamble.

Definition at line 67 of file Lexer.h.

Referenced by clang::PrecompiledPreamble::Build(), and clang::PrecompiledPreamble::CanReuse().

◆ Size

unsigned clang::PreambleBounds::Size

Size of the preamble in bytes.

Definition at line 61 of file Lexer.h.

Referenced by clang::PrecompiledPreamble::Build(), clang::PrecompiledPreamble::CanReuse(), and makeStandaloneDiagnostic().


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