Home
last modified time | relevance | path

Searched refs:Tokens (Results 1 – 17 of 17) sorted by relevance

/NextBSD/contrib/llvm/tools/clang/lib/Format/
HDFormat.cpp643 assert(Tokens.empty()); in lex()
646 Tokens.push_back(getNextToken()); in lex()
648 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex()
649 FirstInLineIndex = Tokens.size() - 1; in lex()
650 } while (Tokens.back()->Tok.isNot(tok::eof)); in lex()
651 return Tokens; in lex()
693 if (Tokens.size() < 3) in tryMergeLessLess()
697 if (Tokens.size() > 3) in tryMergeLessLess()
698 FourthTokenIsLess = (Tokens.end() - 4)[0]->is(tok::less); in tryMergeLessLess()
700 auto First = Tokens.end() - 3; in tryMergeLessLess()
[all …]
HDTokenAnnotator.h42 : First(Line.Tokens.front().Tok), Level(Line.Level), in AnnotatedLine()
47 assert(!Line.Tokens.empty()); in AnnotatedLine()
54 for (std::list<UnwrappedLineNode>::const_iterator I = ++Line.Tokens.begin(), in AnnotatedLine()
55 E = Line.Tokens.end(); in AnnotatedLine()
85 template <typename... Ts> bool startsWith(Ts... Tokens) const { in startsWith() argument
86 return startsWith(First, Tokens...); in startsWith()
125 bool startsWith(FormatToken *Tok, A K1, Ts... Tokens) const { in startsWith() argument
126 return startsWith(Tok, K1) && startsWith(Tok->Next, Tokens...); in startsWith()
HDUnwrappedLineParser.cpp126 else if (!Parser.Line->Tokens.empty()) in ScopedLineState()
127 Parser.CurrentLines = &Parser.Line->Tokens.back().Children; in ScopedLineState()
135 if (!Parser.Line->Tokens.empty()) { in ~ScopedLineState()
138 assert(Parser.Line->Tokens.empty()); in ~ScopedLineState()
175 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource() argument
176 : Tokens(Tokens), Position(-1) {} in IndexedTokenSource()
180 return Tokens[Position]; in getNextToken()
190 return Tokens[Position]; in setPosition()
196 ArrayRef<FormatToken *> Tokens; member in clang::format::__anon5fd511b60211::IndexedTokenSource
204 ArrayRef<FormatToken *> Tokens, in UnwrappedLineParser() argument
[all …]
HDUnwrappedLineParser.h41 std::list<UnwrappedLineNode> Tokens; member
65 ArrayRef<FormatToken *> Tokens,
163 FormatTokenSource *Tokens; variable
/NextBSD/contrib/llvm/tools/clang/lib/Lex/
HDTokenLexer.cpp41 Tokens = &*Macro->tokens_begin(); in Init()
51 assert(Tokens[0].getLocation().isValid()); in Init()
52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init()
60 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init()
91 Tokens = TokArray; in Init()
115 delete [] Tokens; in destroy()
116 Tokens = nullptr; in destroy()
184 const Token &CurTok = Tokens[i]; in ExpandFunctionArguments()
185 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) in ExpandFunctionArguments()
189 int ArgNo = Macro->getArgumentNum(Tokens[i+1].getIdentifierInfo()); in ExpandFunctionArguments()
[all …]
HDPreprocessor.cpp321 ArrayRef<TokenValue> Tokens) { in MacroDefinitionEquals() argument
322 return Tokens.size() == MI->getNumTokens() && in MacroDefinitionEquals()
323 std::equal(Tokens.begin(), Tokens.end(), MI->tokens_begin()); in MacroDefinitionEquals()
328 ArrayRef<TokenValue> Tokens) const { in getLastMacroWithSpelling()
339 if (!MacroDefinitionEquals(Def.getMacroInfo(), Tokens)) in getLastMacroWithSpelling()
HDPPMacroExpansion.cpp577 static bool CheckMatchedBrackets(const SmallVectorImpl<Token> &Tokens) { in CheckMatchedBrackets() argument
579 for (SmallVectorImpl<Token>::const_iterator I = Tokens.begin(), in CheckMatchedBrackets()
580 E = Tokens.end(); in CheckMatchedBrackets()
988 prevLexer->Tokens = MacroExpandedTokens.data() + tokIndex; in cacheMacroExpandedTokens()
/NextBSD/contrib/llvm/lib/CodeGen/
HDIfConversion.cpp200 void AnalyzeBlock(MachineBasicBlock *MBB, std::vector<IfcvtToken*> &Tokens);
203 void AnalyzeBlocks(MachineFunction &MF, std::vector<IfcvtToken*> &Tokens);
311 std::vector<IfcvtToken*> Tokens; in INITIALIZE_PASS_DEPENDENCY() local
319 AnalyzeBlocks(MF, Tokens); in INITIALIZE_PASS_DEPENDENCY()
320 while (!Tokens.empty()) { in INITIALIZE_PASS_DEPENDENCY()
321 IfcvtToken *Token = Tokens.back(); in INITIALIZE_PASS_DEPENDENCY()
322 Tokens.pop_back(); in INITIALIZE_PASS_DEPENDENCY()
417 while (!Tokens.empty()) { in INITIALIZE_PASS_DEPENDENCY()
418 IfcvtToken *Token = Tokens.back(); in INITIALIZE_PASS_DEPENDENCY()
419 Tokens.pop_back(); in INITIALIZE_PASS_DEPENDENCY()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/Lex/
HDTokenLexer.h51 const Token *Tokens; variable
HDPreprocessor.h911 ArrayRef<TokenValue> Tokens) const;
/NextBSD/contrib/llvm/tools/clang/include/clang-c/
HDIndex.h4166 CXToken **Tokens, unsigned *NumTokens);
4199 CXToken *Tokens, unsigned NumTokens,
4206 CXToken *Tokens, unsigned NumTokens);
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDCommentSema.cpp693 TokenValue Tokens[] = { in checkDeprecatedCommand() local
699 Tokens); in checkDeprecatedCommand()
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDAnalysisBasedWarnings.cpp1122 TokenValue Tokens[] = { in DiagnoseSwitchLabelsFallthrough() local
1128 StringRef MacroName = PP.getLastMacroWithSpelling(L, Tokens); in DiagnoseSwitchLabelsFallthrough()
/NextBSD/contrib/gdb/
HDFREEBSD-diffs764 /* Tokens for use by the asynchronous signal handlers for SIGINT */
/NextBSD/contrib/binutils/binutils/doc/
HDbinutils.texi614 @c FIXME Tokens but no commands???
/NextBSD/contrib/gcc/doc/
HDcpp.texi462 token of any kind. Tokens do not have to be separated by white space,
HDtm.texi9410 @var{name} by calling @code{pragma_lex}. Tokens that are not read by the