Home | History | Annotate | Download | only in Parse

Lines Matching refs:Parser

1 //===--- Parser.cpp - C Language Family Parser ----------------------------===//
10 // This file implements the Parser interfaces.
14 #include "clang/Parse/Parser.h"
26 Parser::Parser(Preprocessor &pp, Sema &actions)
73 /// If a crash happens while the parser is active, print out a line indicating
78 OS << "<eof> parser at end of file\n";
83 OS << "<unknown> parser at unknown location\n";
92 OS << ": current parser token '" << PP.getSpelling(Tok) << "'\n";
96 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) {
100 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) {
110 void Parser::SuggestParentheses(SourceLocation Loc, unsigned DK,
128 /// that the parser failed to match the RHS of the token at LHSLoc.
129 SourceLocation Parser::MatchRHSPunctuation(tok::TokenKind RHSTok,
160 /// ExpectAndConsume - The parser expects that 'ExpectedTok' is next in the
166 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
202 bool Parser::ExpectAndConsumeSemi(unsigned DiagID) {
233 bool Parser::SkipUntil(const tok::TokenKind *Toks, unsigned NumToks,
325 void Parser::EnterScope(unsigned ScopeFlags) {
336 void Parser::ExitScope() {
355 Parser::ParseScopeFlags::ParseScopeFlags(Parser *Self, unsigned ScopeFlags,
366 Parser::ParseScopeFlags::~ParseScopeFlags() {
376 Parser::~Parser() {
417 /// Initialize - Warm up the parser.
419 void Parser::Initialize() {
433 // Referenced in Parser::ParseObjCTypeQualifierList.
487 bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) {
515 void Parser::ParseTranslationUnit() {
548 Parser::DeclGroupPtrTy
549 Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs,
697 bool Parser::isDeclarationAfterDeclarator() {
716 bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) {
751 Parser::DeclGroupPtrTy
752 Parser::ParseDeclarationOrFunctionDefinition(ParsingDeclSpec &DS,
806 Parser::DeclGroupPtrTy
807 Parser::ParseDeclarationOrFunctionDefinition(ParsedAttributes &attrs,
828 Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
985 void Parser::ParseKNRParamDeclarations(Declarator &D) {
1103 Parser::ExprResult Parser::ParseAsmStringLiteral() {
1122 Parser::ExprResult Parser::ParseSimpleAsm(SourceLocation *EndLoc) {
1162 TemplateIdAnnotation *Parser::takeTemplateIdAnnotation(const Token &tok) {
1193 bool Parser::TryAnnotateTypeOrScopeToken(bool EnteringContext) {
1365 bool Parser::TryAnnotateCXXScopeToken(bool EnteringContext) {
1394 bool Parser::isTokenEqualOrMistypedEqualEqual(unsigned DiagID) {
1408 void Parser::CodeCompletionRecovery() {
1424 // Anchor the Parser::FieldCallback vtable to this translation unit.
1428 void Parser::FieldCallback::_anchor() {
1433 void Parser::CodeCompleteDirective(bool InConditional) {
1437 void Parser::CodeCompleteInConditionalExclusion() {
1441 void Parser::CodeCompleteMacroName(bool IsDefinition) {
1445 void Parser::CodeCompletePreprocessorExpression() {
1449 void Parser::CodeCompleteMacroArgument(IdentifierInfo *Macro,
1456 void Parser::CodeCompleteNaturalLanguage() {
1460 bool Parser::ParseMicrosoftIfExistsCondition(bool& Result) {
1503 void Parser::ParseMicrosoftIfExistsExternalDeclaration() {