Lines Matching refs:NumTokens
6107 CXToken **Tokens, unsigned *NumTokens) { in clang_tokenize() argument
6114 if (NumTokens) in clang_tokenize()
6115 *NumTokens = 0; in clang_tokenize()
6123 if (!CXXUnit || !Tokens || !NumTokens) in clang_tokenize()
6140 *NumTokens = CXTokens.size(); in clang_tokenize()
6144 CXToken *Tokens, unsigned NumTokens) { in clang_disposeTokens() argument
6164 unsigned NumTokens; member in __anonc9d3eafc0a11::AnnotateTokensWorker
6180 assert(Idx < NumTokens); in getTok()
6184 assert(Idx < NumTokens); in getTok()
6187 bool MoreTokens() const { return TokIdx < NumTokens; } in MoreTokens()
6208 NumTokens(numTokens), TokIdx(0), PreprocessingTokIdx(0), in AnnotateTokensWorker()
6295 for (; I < NumTokens && isFunctionMacroToken(I); ++I) { in annotateAndAdvanceFunctionMacroTokens()
6524 unsigned NumTokens; member in __anonc9d3eafc0b11::MarkMacroArgTokensVisitor
6530 : SM(SM), Tokens(tokens), NumTokens(numTokens), CurIdx(0) { } in MarkMacroArgTokensVisitor()
6540 for (; CurIdx < NumTokens; ++CurIdx) { in visit()
6546 if (CurIdx == NumTokens) in visit()
6549 for (; CurIdx < NumTokens; ++CurIdx) { in visit()
6557 if (CurIdx == NumTokens) in visit()
6565 assert(Idx < NumTokens); in getTok()
6569 assert(Idx < NumTokens); in getTok()
6596 unsigned &NextIdx, unsigned NumTokens) { in lexNext() argument
6597 if (NextIdx >= NumTokens) in lexNext()
6609 unsigned NumTokens) { in annotatePreprocessorTokens() argument
6639 if (lexNext(Lex, Tok, NextIdx, NumTokens)) in annotatePreprocessorTokens()
6654 if (lexNext(Lex, Tok, NextIdx, NumTokens)) in annotatePreprocessorTokens()
6659 if (lexNext(Lex, Tok, NextIdx, NumTokens)) in annotatePreprocessorTokens()
6673 if (lexNext(Lex, Tok, NextIdx, NumTokens)) { in annotatePreprocessorTokens()
6710 CXToken *Tokens, unsigned NumTokens, in clang_annotateTokensImpl() argument
6722 Tokens[NumTokens-1]))); in clang_annotateTokensImpl()
6726 annotatePreprocessorTokens(TU, RegionOfInterest, Cursors, Tokens, NumTokens); in clang_annotateTokensImpl()
6741 Tokens, NumTokens); in clang_annotateTokensImpl()
6752 AnnotateTokensWorker W(Tokens, Cursors, NumTokens, TU, RegionOfInterest); in clang_annotateTokensImpl()
6764 for (unsigned I = 0; I != NumTokens; ++I) { in clang_annotateTokensImpl()
6820 CXToken *Tokens, unsigned NumTokens, in clang_annotateTokens() argument
6826 if (NumTokens == 0 || !Tokens || !Cursors) { in clang_annotateTokens()
6834 CXSourceLocation eloc = clang_getTokenLocation(TU, Tokens[NumTokens-1]); in clang_annotateTokens()
6840 for (unsigned I = 0; I != NumTokens; ++I) in clang_annotateTokens()
6850 clang_annotateTokensImpl(TU, CXXUnit, Tokens, NumTokens, Cursors); in clang_annotateTokens()