Searched refs:TPResult (Results 1 – 4 of 4) sorted by relevance
103 TPResult TPR = isCXXDeclarationSpecifier(); in isCXXSimpleDeclaration()104 if (TPR != TPResult::Ambiguous()) in isCXXSimpleDeclaration()105 return TPR != TPResult::False(); // Returns true for TPResult::True() or in isCXXSimpleDeclaration()119 if (TPR == TPResult::Error()) in isCXXSimpleDeclaration()123 if (TPR == TPResult::Ambiguous()) in isCXXSimpleDeclaration()124 TPR = TPResult::True(); in isCXXSimpleDeclaration()126 assert(TPR == TPResult::True() || TPR == TPResult::False()); in isCXXSimpleDeclaration()127 return TPR == TPResult::True(); in isCXXSimpleDeclaration()133 Parser::TPResult Parser::TryParseSimpleDeclaration() { in TryParseSimpleDeclaration()136 assert(isCXXDeclarationSpecifier() == TPResult::Ambiguous()); in TryParseSimpleDeclaration()[all …]
2529 TPResult TPR = isExpressionOrTypeSpecifierSimple(NextToken().getKind()); in ParseEnumSpecifier()2532 if (TPR == TPResult::True()) in ParseEnumSpecifier()2538 else if (TPR == TPResult::False() && in ParseEnumSpecifier()2552 isCXXDeclarationSpecifier() != TPResult::True()) || in ParseEnumSpecifier()
1057 while (isCXXDeclarationSpecifier() == TPResult::True()) in IsTemplateArgumentList()
1551 class TPResult {1559 TPResult(Result result) : Res(result) {} in TPResult() function1561 static TPResult True() { return TPR_true; } in True()1562 static TPResult False() { return TPR_false; } in False()1563 static TPResult Ambiguous() { return TPR_ambiguous; } in Ambiguous()1564 static TPResult Error() { return TPR_error; } in Error()1566 bool operator==(const TPResult &RHS) const { return Res == RHS.Res; }1567 bool operator!=(const TPResult &RHS) const { return Res != RHS.Res; }1580 TPResult isExpressionOrTypeSpecifierSimple(tok::TokenKind Kind);1588 TPResult isCXXDeclarationSpecifier();[all …]