Searched refs:TokenIndex (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | GLRTest.cpp | 408 unsigned TokenIndex = 2; in TEST_F() local 409 glrRecover({AfterQuestion1}, TokenIndex, {Tokens, Arena, GSStack}, TestLang, in TEST_F() 411 EXPECT_EQ(TokenIndex, 4u) << "should skip ahead to matching brace"; in TEST_F() 420 TokenIndex = 2; in TEST_F() 423 EXPECT_EQ(TokenIndex, 2u) << "should not advance on failure"; in TEST_F() 456 unsigned TokenIndex = 3; in TEST_F() local 458 glrRecover({In3}, TokenIndex, {Tokens, Arena, GSStack}, TestLang, NewHeads); in TEST_F() 459 EXPECT_EQ(TokenIndex, 5u); in TEST_F() 491 unsigned TokenIndex = 1; in TEST_F() local 493 glrRecover({OpenedBraces}, TokenIndex, {Tokens, Arena, GSStack}, TestLang, in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | Lex.cpp | 30 Token::Index TokenIndex = 0; in lex() local 71 Tok.OriginalIndex = TokenIndex++; in lex()
|
| H A D | GLR.cpp | 43 unsigned &TokenIndex, const ParseParams &Params, in glrRecover() argument 46 LLVM_DEBUG(llvm::dbgs() << "Recovery at token " << TokenIndex << "...\n"); in glrRecover() 116 WalkUp(N, TokenIndex, WalkUp); in glrRecover() 146 if (End == Token::Invalid || End < TokenIndex) in glrRecover() 194 TokenIndex = RecoveryRange->End; in glrRecover()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/ |
| H A D | GLR.h | 162 unsigned &TokenIndex, const ParseParams &Params,
|