Lines Matching refs:TPR
114 TPResult TPR = isCXXDeclarationSpecifier(TPResult::False, in isCXXSimpleDeclaration() local
116 if (TPR != TPResult::Ambiguous) in isCXXSimpleDeclaration()
117 return TPR != TPResult::False; // Returns true for TPResult::True or in isCXXSimpleDeclaration()
137 TPR = TryParseSimpleDeclaration(AllowForRangeDecl); in isCXXSimpleDeclaration()
141 if (TPR == TPResult::Error) in isCXXSimpleDeclaration()
145 if (TPR == TPResult::Ambiguous) in isCXXSimpleDeclaration()
146 TPR = TPResult::True; in isCXXSimpleDeclaration()
148 assert(TPR == TPResult::True || TPR == TPResult::False); in isCXXSimpleDeclaration()
149 return TPR == TPResult::True; in isCXXSimpleDeclaration()
234 TPResult TPR = isCXXDeclarationSpecifier(); in TryParseSimpleDeclaration() local
235 if (TPR == TPResult::Ambiguous) in TryParseSimpleDeclaration()
237 if (TPR == TPResult::True || TPR == TPResult::Error) in TryParseSimpleDeclaration()
238 return TPR; in TryParseSimpleDeclaration()
239 assert(TPR == TPResult::False); in TryParseSimpleDeclaration()
242 TPResult TPR = TryParseInitDeclaratorList(); in TryParseSimpleDeclaration() local
243 if (TPR != TPResult::Ambiguous) in TryParseSimpleDeclaration()
244 return TPR; in TryParseSimpleDeclaration()
282 TPResult TPR = TryParseDeclarator(false/*mayBeAbstract*/); in TryParseInitDeclaratorList() local
283 if (TPR != TPResult::Ambiguous) in TryParseInitDeclaratorList()
284 return TPR; in TryParseInitDeclaratorList()
572 TPResult TPR = isCXXDeclarationSpecifier(); in isCXXTypeId() local
573 if (TPR != TPResult::Ambiguous) in isCXXTypeId()
574 return TPR != TPResult::False; // Returns true for TPResult::True or in isCXXTypeId()
590 TPR = TryParseDeclarator(true/*mayBeAbstract*/, false/*mayHaveIdentifier*/); in isCXXTypeId()
593 if (TPR == TPResult::Error) in isCXXTypeId()
594 TPR = TPResult::True; in isCXXTypeId()
596 if (TPR == TPResult::Ambiguous) { in isCXXTypeId()
600 TPR = TPResult::True; in isCXXTypeId()
616 TPR = TPResult::True; in isCXXTypeId()
620 TPR = TPResult::False; in isCXXTypeId()
623 assert(TPR == TPResult::True || TPR == TPResult::False); in isCXXTypeId()
624 return TPR == TPResult::True; in isCXXTypeId()
933 TPResult TPR = isCXXDeclarationSpecifier(); in TryParseOperatorId() local
934 if (TPR == TPResult::Error) in TryParseOperatorId()
935 return TPR; in TryParseOperatorId()
936 if (TPR == TPResult::False) { in TryParseOperatorId()
1044 TPResult TPR = TryParseFunctionDeclarator(); in TryParseDeclarator() local
1045 if (TPR != TPResult::Ambiguous) in TryParseDeclarator()
1046 return TPR; in TryParseDeclarator()
1055 TPResult TPR = TryParseDeclarator(mayBeAbstract, mayHaveIdentifier); in TryParseDeclarator() local
1056 if (TPR != TPResult::Ambiguous) in TryParseDeclarator()
1057 return TPR; in TryParseDeclarator()
1070 TPResult TPR(TPResult::Ambiguous); in TryParseDeclarator() local
1083 TPR = TryParseFunctionDeclarator(); in TryParseDeclarator()
1087 TPR = TryParseBracketDeclarator(); in TryParseDeclarator()
1091 TPR = TPResult::True; in TryParseDeclarator()
1096 if (TPR != TPResult::Ambiguous) in TryParseDeclarator()
1097 return TPR; in TryParseDeclarator()
1511 TPResult TPR = TPResult::False; in isCXXDeclarationSpecifier() local
1513 TPR = isCXXDeclarationSpecifier(BracedCastResult, in isCXXDeclarationSpecifier()
1517 TPR == TPResult::True || TPR == TPResult::Error) in isCXXDeclarationSpecifier()
1604 TPResult TPR = TryParseProtocolQualifiers(); in isCXXDeclarationSpecifier() local
1608 if (TPR == TPResult::Error) in isCXXDeclarationSpecifier()
1668 TPResult TPR = TryParseTypeofSpecifier(); in isCXXDeclarationSpecifier() local
1672 if (TPR == TPResult::Error) in isCXXDeclarationSpecifier()
1839 TPResult TPR = TryParseParameterDeclarationClause(&InvalidAsDeclaration); in isCXXFunctionDeclarator() local
1840 if (TPR == TPResult::Ambiguous) { in isCXXFunctionDeclarator()
1842 TPR = TPResult::False; in isCXXFunctionDeclarator()
1852 TPR = TPResult::True; in isCXXFunctionDeclarator()
1855 TPR = TPResult::False; in isCXXFunctionDeclarator()
1859 if (IsAmbiguous && TPR == TPResult::Ambiguous) in isCXXFunctionDeclarator()
1863 return TPR != TPResult::False; in isCXXFunctionDeclarator()
1918 TPResult TPR = isCXXDeclarationSpecifier(TPResult::False, in TryParseParameterDeclarationClause() local
1922 if (TPR != TPResult::Ambiguous && in TryParseParameterDeclarationClause()
1923 !(VersusTemplateArgument && TPR == TPResult::True)) in TryParseParameterDeclarationClause()
1924 return TPR; in TryParseParameterDeclarationClause()
1936 TPR = isCXXDeclarationSpecifier(TPResult::False, in TryParseParameterDeclarationClause()
1938 if (TPR == TPResult::Error) in TryParseParameterDeclarationClause()
1939 return TPR; in TryParseParameterDeclarationClause()
1942 if (TPR == TPResult::True && !VersusTemplateArgument) in TryParseParameterDeclarationClause()
1943 return TPR; in TryParseParameterDeclarationClause()
1944 } while (TPR != TPResult::False); in TryParseParameterDeclarationClause()
1948 TPR = TryParseDeclarator(true/*mayBeAbstract*/); in TryParseParameterDeclarationClause()
1949 if (TPR != TPResult::Ambiguous) in TryParseParameterDeclarationClause()
1950 return TPR; in TryParseParameterDeclarationClause()
2005 TPResult TPR = TryParseParameterDeclarationClause(); in TryParseFunctionDeclarator() local
2006 if (TPR == TPResult::Ambiguous && Tok.isNot(tok::r_paren)) in TryParseFunctionDeclarator()
2007 TPR = TPResult::False; in TryParseFunctionDeclarator()
2009 if (TPR == TPResult::False || TPR == TPResult::Error) in TryParseFunctionDeclarator()
2010 return TPR; in TryParseFunctionDeclarator()