clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc1/builddocs/llvm.src/tools/clang/lib/Format/FormatTokenLexer.h"
Public Member Functions | |
FormatTokenLexer (const SourceManager &SourceMgr, FileID ID, unsigned Column, const FormatStyle &Style, encoding::Encoding Encoding) | |
ArrayRef< FormatToken * > | lex () |
const AdditionalKeywords & | getKeywords () |
Definition at line 38 of file FormatTokenLexer.h.
clang::format::FormatTokenLexer::FormatTokenLexer | ( | const SourceManager & | SourceMgr, |
FileID | ID, | ||
unsigned | Column, | ||
const FormatStyle & | Style, | ||
encoding::Encoding | Encoding | ||
) |
Definition at line 26 of file FormatTokenLexer.cpp.
References clang::format::FormatStyle::ForEachMacros, clang::IdentifierTable::get(), clang::SourceManager::getBuffer(), clang::format::getFormattingLangOpts(), clang::format::FormatStyle::MacroBlockBegin, clang::format::FormatStyle::MacroBlockEnd, clang::format::NORMAL, and clang::format::FormatStyle::StatementMacros.
|
inline |
Definition at line 45 of file FormatTokenLexer.h.
References Offset, and clang::format::Tok.
ArrayRef< FormatToken * > clang::format::FormatTokenLexer::lex | ( | ) |
Definition at line 45 of file FormatTokenLexer.cpp.
References clang::format::FormatToken::ColumnWidth, clang::format::encoding::columnWidthWithTabs(), End, clang::comments::tok::eof, clang::First, clang::SourceManager::getBuffer(), clang::SourceManager::getDecomposedLoc(), clang::SourceManager::getFileOffset(), clang::SourceManager::getLocForEndOfFile(), clang::format::FormatToken::HasUnescapedNewline, clang::format::FormatToken::is(), clang::format::FormatToken::isBinaryOperator(), clang::format::FormatToken::IsFirst, clang::format::FormatToken::IsMultiline, clang::format::FormatToken::isOneOf(), clang::format::AdditionalKeywords::kw_in, clang::format::AdditionalKeywords::kw_instanceof, clang::format::FormatStyle::Language, clang::Last, clang::format::FormatToken::LastLineColumnWidth, clang::format::FormatToken::LastNewlineOffset, clang::format::FormatStyle::LK_Java, clang::format::FormatStyle::LK_JavaScript, clang::format::FormatStyle::LK_TextProto, clang::format::FormatToken::NewlinesBefore, clang::format::NORMAL, Offset, clang::format::FormatToken::OriginalColumn, clang::Token::setKind(), clang::format::FormatStyle::TabWidth, clang::format::TEMPLATE_STRING, clang::format::FormatToken::Tok, clang::format::Tok, clang::format::FormatToken::TokenText, clang::format::FormatToken::Type, and clang::format::FormatToken::WhitespaceRange.