clang API Documentation
This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines. More...
Go to the source code of this file.
Classes | |
class | clang::format::FormatTokenSource |
class | clang::format::ScopedLineState |
class | clang::format::CompoundStatementIndenter |
Namespaces | |
namespace | clang |
namespace | clang::format |
Defines | |
#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) |
bool | clang::format::tokenCanStartNewLine (clang::Token Tok) |
static LLVM_ATTRIBUTE_UNUSED void | clang::format::printDebugInfo (const UnwrappedLine &Line, StringRef Prefix="") |
This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines.
Definition in file UnwrappedLineParser.cpp.
#define DEBUG_TYPE "format-parser" |
Definition at line 19 of file UnwrappedLineParser.cpp.
UnwrappedLine& Line |
Definition at line 52 of file UnwrappedLineParser.cpp.
int Position |
Definition at line 199 of file UnwrappedLineParser.cpp.
Referenced by clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnTemplateTemplateParameter(), clang::comments::Sema::actOnTParamCommandParamNameArg(), clang::Sema::ActOnTypeParameter(), clang::comments::TextTokenRetokenizer::lexDelimitedSeq(), clang::comments::TextTokenRetokenizer::lexWord(), clang::PreprocessingRecord::iterator::operator*(), clang::LazyVector< T, Source, Loader, LoadedStorage, LocalStorage >::iterator::operator*(), clang::PreprocessingRecord::iterator::operator++(), clang::LazyVector< T, Source, Loader, LoadedStorage, LocalStorage >::iterator::operator++(), clang::PreprocessingRecord::iterator::operator--(), clang::LazyVector< T, Source, Loader, LoadedStorage, LocalStorage >::iterator::operator--(), clang::LazyVector< T, Source, Loader, LoadedStorage, LocalStorage >::iterator::operator->(), clang::Preprocessor::SetCodeCompletionPoint(), and clang::tooling::shiftedCodePosition().
Definition at line 111 of file UnwrappedLineParser.cpp.
Definition at line 114 of file UnwrappedLineParser.cpp.
FormatTokenSource* PreviousTokenSource |
Definition at line 112 of file UnwrappedLineParser.cpp.
FormatToken*& ResetToken |
Definition at line 110 of file UnwrappedLineParser.cpp.
Definition at line 53 of file UnwrappedLineParser.cpp.
Referenced by clang::Sema::PragmaStack< ValueType >::Act(), clang::Sema::ActOnEndOfTranslationUnit(), clang::Sema::ActOnPragmaMSSeg(), clang::Sema::AddAlignmentAttributesForRecord(), clang::Sema::AddPushedVisibilityAttribute(), clang::Sema::CheckCompleteVariableDeclaration(), clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(), clang::ASTReader::makeModuleVisible(), clang::NestedNameSpecifierLocBuilder::MakeTrivial(), clang::Module::markUnavailable(), clang::Sema::PopPragmaVisibility(), and PushPragmaVisibility().
Definition at line 113 of file UnwrappedLineParser.cpp.
FormatToken* Token |
Definition at line 116 of file UnwrappedLineParser.cpp.
Referenced by clang::MacroArgs::create(), clang::MacroArgs::getPreExpArgument(), ParseAlignPragma(), and ParseLoopHintValue().
ArrayRef<FormatToken *> Tokens |
Definition at line 198 of file UnwrappedLineParser.cpp.
FormatTokenSource*& TokenSource |
Definition at line 109 of file UnwrappedLineParser.cpp.
Referenced by clang::format::UnwrappedLineParser::parse().