clang
9.0.0
|
#include "/work/llvm-www-releases/9.0.0/docsbuild/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 37 of file FormatTokenLexer.h.
clang::format::FormatTokenLexer::FormatTokenLexer | ( | const SourceManager & | SourceMgr, |
FileID | ID, | ||
unsigned | Column, | ||
const FormatStyle & | Style, | ||
encoding::Encoding | Encoding | ||
) |
Definition at line 25 of file FormatTokenLexer.cpp.
References clang::IdentifierTable::get(), clang::SourceManager::getBuffer(), clang::format::getFormattingLangOpts(), and clang::format::NORMAL.
|
inline |
Definition at line 44 of file FormatTokenLexer.h.
References Offset, and clang::format::Tok.
ArrayRef< FormatToken * > clang::format::FormatTokenLexer::lex | ( | ) |
Definition at line 48 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, i, Identifier, clang::format::FormatToken::is(), clang::format::FormatToken::isBinaryOperator(), clang::format::AdditionalKeywords::isCSharpKeyword(), clang::format::FormatToken::IsFirst, clang::format::FormatToken::IsMultiline, clang::format::FormatToken::isOneOf(), clang::format::AdditionalKeywords::kw_in, clang::format::AdditionalKeywords::kw_instanceof, clang::Last, clang::format::FormatToken::LastLineColumnWidth, clang::format::FormatToken::LastNewlineOffset, clang::format::FormatToken::NewlinesBefore, clang::format::NORMAL, Offset, clang::format::FormatToken::OriginalColumn, clang::Token::setKind(), clang::format::TEMPLATE_STRING, clang::format::FormatToken::Tok, clang::format::Tok, clang::format::FormatToken::TokenText, clang::format::FormatToken::Type, and clang::format::FormatToken::WhitespaceRange.