/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 88 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/ |
D | LexerTest.cpp | 83 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/ |
D | t009.cpp | 26 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()
|
D | t004.cpp | 26 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()
|
D | t007.cpp | 26 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()
|
D | t011.cpp | 26 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()
|
D | t006.cpp | 26 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()
|
D | t008.cpp | 26 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()
|
D | t010.cpp | 26 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()
|
D | t005.cpp | 27 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()
|
D | t003.cpp | 27 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()
|
D | t039.cpp | 28 static TokenData ExpectedTokens[] = variable 87 << '\t' << (token->getText() == ExpectedTokens[i].text ? "OK" : "Fail") in testValid()
|
D | t002.cpp | 18 static t002lexerTokens::Tokens ExpectedTokens[] = variable 51 << (token->getType() == ExpectedTokens[i] ? "OK" : "Fail") in testValid()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | SemanticHighlightingTests.cpp | 66 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/ |
D | TokensTest.cpp | 580 std::string ExpectedTokens = in TEST_F() local 584 EXPECT_THAT(collectAndDump(Code), StartsWith(ExpectedTokens)); in TEST_F()
|