Lines Matching refs:Parser
1 //===--- Parser.cpp - C Language Family Parser ----------------------------===//
10 // This file implements the Parser interfaces.
14 #include "clang/Parse/Parser.h"
29 /// to the parser action.
43 IdentifierInfo *Parser::getSEHExceptKeyword() {
51 Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies)
118 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) {
122 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) {
132 void Parser::SuggestParentheses(SourceLocation Loc, unsigned DK,
155 /// ExpectAndConsume - The parser expects that 'ExpectedTok' is next in the
161 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
197 bool Parser::ExpectAndConsumeSemi(unsigned DiagID) {
216 void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, unsigned TST) {
264 bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, bool StopAtSemi,
365 void Parser::EnterScope(unsigned ScopeFlags) {
376 void Parser::ExitScope() {
395 Parser::ParseScopeFlags::ParseScopeFlags(Parser *Self, unsigned ScopeFlags,
406 Parser::ParseScopeFlags::~ParseScopeFlags() {
416 Parser::~Parser() {
473 /// Initialize - Warm up the parser.
475 void Parser::Initialize() {
482 // Referenced in Parser::ParseObjCTypeQualifierList.
565 bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) {
619 Parser::DeclGroupPtrTy
620 Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs,
797 bool Parser::isDeclarationAfterDeclarator() {
816 bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) {
851 Parser::DeclGroupPtrTy
852 Parser::ParseDeclOrFunctionDefInternal(ParsedAttributesWithRange &attrs,
909 Parser::DeclGroupPtrTy
910 Parser::ParseDeclarationOrFunctionDefinition(ParsedAttributesWithRange &attrs,
940 Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
1133 void Parser::ParseKNRParamDeclarations(Declarator &D) {
1250 Parser::ExprResult Parser::ParseAsmStringLiteral() {
1278 Parser::ExprResult Parser::ParseSimpleAsm(SourceLocation *EndLoc) {
1318 TemplateIdAnnotation *Parser::takeTemplateIdAnnotation(const Token &tok) {
1325 void Parser::AnnotateScopeToken(CXXScopeSpec &SS, bool IsNewAnnotation) {
1352 Parser::AnnotatedNameKind
1353 Parser::TryAnnotateName(bool IsAddressOfOperand,
1485 bool Parser::TryAnnotateTypeOrScopeToken(bool EnteringContext, bool NeedType) {
1579 bool Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec(bool EnteringContext,
1675 bool Parser::TryAnnotateCXXScopeToken(bool EnteringContext) {
1692 bool Parser::isTokenEqualOrEqualTypo() {
1719 SourceLocation Parser::handleUnexpectedCodeCompletionToken() {
1742 // Anchor the Parser::FieldCallback vtable to this translation unit.
1746 void Parser::FieldCallback::_anchor() {
1751 void Parser::CodeCompleteDirective(bool InConditional) {
1755 void Parser::CodeCompleteInConditionalExclusion() {
1759 void Parser::CodeCompleteMacroName(bool IsDefinition) {
1763 void Parser::CodeCompletePreprocessorExpression() {
1767 void Parser::CodeCompleteMacroArgument(IdentifierInfo *Macro,
1774 void Parser::CodeCompleteNaturalLanguage() {
1778 bool Parser::ParseMicrosoftIfExistsCondition(IfExistsCondition& Result) {
1835 void Parser::ParseMicrosoftIfExistsExternalDeclaration() {
1871 Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) {