Lines Matching refs:NumTokens

5479                     CXToken **Tokens, unsigned *NumTokens) {  in clang_tokenize()  argument
5486 if (NumTokens) in clang_tokenize()
5487 *NumTokens = 0; in clang_tokenize()
5495 if (!CXXUnit || !Tokens || !NumTokens) in clang_tokenize()
5512 *NumTokens = CXTokens.size(); in clang_tokenize()
5516 CXToken *Tokens, unsigned NumTokens) { in clang_disposeTokens() argument
5536 unsigned NumTokens; member in __anonc9d3eafc0711::AnnotateTokensWorker
5552 assert(Idx < NumTokens); in getTok()
5556 assert(Idx < NumTokens); in getTok()
5559 bool MoreTokens() const { return TokIdx < NumTokens; } in MoreTokens()
5580 NumTokens(numTokens), TokIdx(0), PreprocessingTokIdx(0), in AnnotateTokensWorker()
5667 for (; I < NumTokens && isFunctionMacroToken(I); ++I) { in annotateAndAdvanceFunctionMacroTokens()
5896 unsigned NumTokens; member in __anonc9d3eafc0811::MarkMacroArgTokensVisitor
5902 : SM(SM), Tokens(tokens), NumTokens(numTokens), CurIdx(0) { } in MarkMacroArgTokensVisitor()
5912 for (; CurIdx < NumTokens; ++CurIdx) { in visit()
5918 if (CurIdx == NumTokens) in visit()
5921 for (; CurIdx < NumTokens; ++CurIdx) { in visit()
5929 if (CurIdx == NumTokens) in visit()
5937 assert(Idx < NumTokens); in getTok()
5941 assert(Idx < NumTokens); in getTok()
5970 unsigned NumTokens; member
5978 unsigned &NextIdx, unsigned NumTokens) { in lexNext() argument
5979 if (NextIdx >= NumTokens) in lexNext()
5994 unsigned NumTokens) { in annotatePreprocessorTokens() argument
6024 if (lexNext(Lex, Tok, NextIdx, NumTokens)) in annotatePreprocessorTokens()
6039 if (lexNext(Lex, Tok, NextIdx, NumTokens)) in annotatePreprocessorTokens()
6044 if (lexNext(Lex, Tok, NextIdx, NumTokens)) in annotatePreprocessorTokens()
6058 if (lexNext(Lex, Tok, NextIdx, NumTokens)) { in annotatePreprocessorTokens()
6097 const unsigned NumTokens = ((clang_annotateTokens_Data*)UserData)->NumTokens; in clang_annotateTokensImpl() local
6110 Tokens[NumTokens-1]))); in clang_annotateTokensImpl()
6114 annotatePreprocessorTokens(TU, RegionOfInterest, Cursors, Tokens, NumTokens); in clang_annotateTokensImpl()
6129 Tokens, NumTokens); in clang_annotateTokensImpl()
6140 AnnotateTokensWorker W(Tokens, Cursors, NumTokens, TU, RegionOfInterest); in clang_annotateTokensImpl()
6152 for (unsigned I = 0; I != NumTokens; ++I) { in clang_annotateTokensImpl()
6207 CXToken *Tokens, unsigned NumTokens, in clang_annotateTokens() argument
6213 if (NumTokens == 0 || !Tokens || !Cursors) { in clang_annotateTokens()
6221 CXSourceLocation eloc = clang_getTokenLocation(TU, Tokens[NumTokens-1]); in clang_annotateTokens()
6227 for (unsigned I = 0; I != NumTokens; ++I) in clang_annotateTokens()
6236 clang_annotateTokens_Data data = { TU, CXXUnit, Tokens, NumTokens, Cursors }; in clang_annotateTokens()