Lines Matching refs:lex
24 #include "clang/Lex/Lexer.h"
1268 FormatTokenLexer(Lexer &Lex, SourceManager &SourceMgr, FormatStyle &Style,
1271 Column(0), TrailingWhitespace(0), Lex(Lex), SourceMgr(SourceMgr),
1274 Lex.SetKeepWhitespaceMode(true);
1281 ArrayRef<FormatToken *> lex() {
1636 Lexer &Lex;
1648 Lex.LexFromRawLexer(Tok.Tok);
1680 Formatter(const FormatStyle &Style, Lexer &Lex, SourceManager &SourceMgr,
1682 : Style(Style), Lex(Lex), SourceMgr(SourceMgr),
1683 Whitespaces(SourceMgr, Style, inputUsesCRLF(Lex.getBuffer())),
1685 Encoding(encoding::detectEncoding(Lex.getBuffer())) {
1696 FormatTokenLexer Tokens(Lex, SourceMgr, Style, Encoding);
1698 lex(), *this);
1950 Lexer &Lex;
1962 tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
1970 Formatter formatter(Style, Lex, SourceMgr, Ranges);
1988 Lexer Lex(ID, SourceMgr.getBuffer(ID), SourceMgr,
1997 return reformat(Style, Lex, SourceMgr, CharRanges);