clang  3.9.0
Public Member Functions | Public Attributes | List of all members
clang::format::UnwrappedLine Struct Reference

An unwrapped line is a sequence of Token, that we would like to put on a single line if there was no column limit. More...

#include <UnwrappedLineParser.h>

Collaboration diagram for clang::format::UnwrappedLine:
[legend]

Public Member Functions

 UnwrappedLine ()
 

Public Attributes

std::list< UnwrappedLineNodeTokens
 The Tokens comprising this UnwrappedLine. More...
 
unsigned Level
 The indent level of the UnwrappedLine. More...
 
bool InPPDirective
 Whether this UnwrappedLine is part of a preprocessor directive. More...
 
bool MustBeDeclaration
 

Detailed Description

An unwrapped line is a sequence of Token, that we would like to put on a single line if there was no column limit.

This is used as a main interface between the UnwrappedLineParser and the UnwrappedLineFormatter. The key property is that changing the formatting within an unwrapped line does not affect any other unwrapped lines.

Definition at line 36 of file UnwrappedLineParser.h.

Constructor & Destructor Documentation

clang::format::UnwrappedLine::UnwrappedLine ( )
inline

Definition at line 216 of file UnwrappedLineParser.h.

Member Data Documentation

bool clang::format::UnwrappedLine::InPPDirective

Whether this UnwrappedLine is part of a preprocessor directive.

Definition at line 47 of file UnwrappedLineParser.h.

Referenced by clang::format::printDebugInfo().

unsigned clang::format::UnwrappedLine::Level

The indent level of the UnwrappedLine.

Definition at line 44 of file UnwrappedLineParser.h.

Referenced by clang::format::printDebugInfo().

bool clang::format::UnwrappedLine::MustBeDeclaration

Definition at line 49 of file UnwrappedLineParser.h.

std::list<UnwrappedLineNode> clang::format::UnwrappedLine::Tokens

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