clang
6.0.0
|
#include "/work/www-prereleases/6.0.0/rc3/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 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, and clang::format::NORMAL.
|
inline |
Definition at line 44 of file FormatTokenLexer.h.
References clang::format::Tok.
ArrayRef< FormatToken * > clang::format::FormatTokenLexer::lex | ( | ) |
Definition at line 44 of file FormatTokenLexer.cpp.
References clang::comments::tok::eof, clang::format::FormatToken::isBinaryOperator(), clang::format::FormatToken::isOneOf(), clang::format::AdditionalKeywords::kw_in, clang::format::AdditionalKeywords::kw_instanceof, clang::format::FormatStyle::Language, clang::format::FormatStyle::LK_Java, clang::format::FormatStyle::LK_JavaScript, clang::format::FormatStyle::LK_TextProto, and clang::format::Tok.