clang  3.9.0
Classes | Namespaces | Macros | Functions
UnwrappedLineParser.cpp File Reference

This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines. More...

#include "UnwrappedLineParser.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for UnwrappedLineParser.cpp:

Go to the source code of this file.

Classes

class  clang::format::FormatTokenSource
 
class  clang::format::ScopedLineState
 
class  clang::format::CompoundStatementIndenter
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::format
 

Macros

#define DEBUG_TYPE   "format-parser"
 

Functions

static bool clang::format::isGoogScope (const UnwrappedLine &Line)
 
static bool clang::format::ShouldBreakBeforeBrace (const FormatStyle &Style, const FormatToken &InitialToken)
 
static bool clang::format::tokenCanStartNewLine (const clang::Token &Tok)
 
static bool clang::format::mustBeJSIdent (const AdditionalKeywords &Keywords, const FormatToken *FormatTok)
 
static bool clang::format::mustBeJSIdentOrValue (const AdditionalKeywords &Keywords, const FormatToken *FormatTok)
 
static bool clang::format::isJSDeclOrStmt (const AdditionalKeywords &Keywords, const FormatToken *FormatTok)
 
static LLVM_ATTRIBUTE_UNUSED void clang::format::printDebugInfo (const UnwrappedLine &Line, StringRef Prefix="")
 

Detailed Description

This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines.

Definition in file UnwrappedLineParser.cpp.

Macro Definition Documentation

#define DEBUG_TYPE   "format-parser"

Definition at line 21 of file UnwrappedLineParser.cpp.

Variable Documentation

UnwrappedLine& Line

Definition at line 54 of file UnwrappedLineParser.cpp.

int Position
unsigned PreviousLineLevel

Definition at line 111 of file UnwrappedLineParser.cpp.

FormatTokenSource* PreviousTokenSource

Definition at line 112 of file UnwrappedLineParser.cpp.

FormatToken*& ResetToken

Definition at line 110 of file UnwrappedLineParser.cpp.

std::vector<bool>& Stack
FormatToken* Token
ArrayRef<FormatToken *> Tokens
FormatTokenSource*& TokenSource

Definition at line 109 of file UnwrappedLineParser.cpp.

Referenced by clang::format::UnwrappedLineParser::parse().