Home
last modified time | relevance | path

Searched refs:ExpectedTokens (Results 1 – 15 of 15) sorted by relevance

/external/clang/unittests/Lex/
DLexerTest.cpp88 ArrayRef<tok::TokenKind> ExpectedTokens) { in CheckLex() argument
90 EXPECT_EQ(ExpectedTokens.size(), toks.size()); in CheckLex()
91 for (unsigned i = 0, e = ExpectedTokens.size(); i != e; ++i) { in CheckLex()
92 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind()); in CheckLex()
120 std::vector<tok::TokenKind> ExpectedTokens; in TEST_F() local
121 ExpectedTokens.push_back(tok::identifier); in TEST_F()
122 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
123 ExpectedTokens.push_back(tok::identifier); in TEST_F()
124 ExpectedTokens.push_back(tok::r_paren); in TEST_F()
128 ExpectedTokens); in TEST_F()
[all …]
/external/llvm-project/clang/unittests/Lex/
DLexerTest.cpp83 ArrayRef<tok::TokenKind> ExpectedTokens) { in CheckLex() argument
85 EXPECT_EQ(ExpectedTokens.size(), toks.size()); in CheckLex()
86 for (unsigned i = 0, e = ExpectedTokens.size(); i != e; ++i) { in CheckLex()
87 EXPECT_EQ(ExpectedTokens[i], toks[i].getKind()); in CheckLex()
115 std::vector<tok::TokenKind> ExpectedTokens; in TEST_F() local
116 ExpectedTokens.push_back(tok::identifier); in TEST_F()
117 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
118 ExpectedTokens.push_back(tok::identifier); in TEST_F()
119 ExpectedTokens.push_back(tok::r_paren); in TEST_F()
123 ExpectedTokens); in TEST_F()
[all …]
/external/antlr/runtime/Cpp/tests/
Dt009.cpp26 static TokenData ExpectedTokens[] = variable
61 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
70 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
71 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
72 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
73 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt004.cpp26 static TokenData ExpectedTokens[] = variable
60 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
69 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
70 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
71 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
72 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt007.cpp26 static TokenData ExpectedTokens[] = variable
60 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
69 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
70 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
71 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
72 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt011.cpp26 static TokenData ExpectedTokens[] = variable
63 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
72 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
73 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
74 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
75 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt006.cpp26 static TokenData ExpectedTokens[] = variable
60 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
69 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
70 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
71 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
72 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt008.cpp26 static TokenData ExpectedTokens[] = variable
61 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
70 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
71 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
72 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
73 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt010.cpp26 static TokenData ExpectedTokens[] = variable
63 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
72 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
73 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
74 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
75 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt005.cpp27 static TokenData ExpectedTokens[] = variable
63 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
72 << '\t' << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
73 << '\t' << (startIndex == ExpectedTokens[i].start ? "OK" : "Fail") in testValid()
74 << '\t' << (stopIndex == ExpectedTokens[i].stop ? "OK" : "Fail") in testValid()
75 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt003.cpp27 static TokenData ExpectedTokens[] = variable
56 for(unsigned i = 0; i < sizeof(ExpectedTokens)/sizeof(TokenData) ; i++) in testValid()
61 << (token->getType() == ExpectedTokens[i].type ? "OK" : "Fail") in testValid()
Dt039.cpp28 static TokenData ExpectedTokens[] = variable
87 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
Dt002.cpp18 static t002lexerTokens::Tokens ExpectedTokens[] = variable
51 << (token->getType() == ExpectedTokens[i] ? "OK" : "Fail") in testValid()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSemanticHighlightingTests.cpp66 std::vector<HighlightingToken> ExpectedTokens; in getExpectedTokens() local
70 ExpectedTokens.insert(ExpectedTokens.end(), Toks.begin(), Toks.end()); in getExpectedTokens()
72 llvm::sort(ExpectedTokens); in getExpectedTokens()
73 return ExpectedTokens; in getExpectedTokens()
/external/llvm-project/clang/unittests/Tooling/Syntax/
DTokensTest.cpp580 std::string ExpectedTokens = in TEST_F() local
584 EXPECT_THAT(collectAndDump(Code), StartsWith(ExpectedTokens)); in TEST_F()