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"
29 /// to the parser action.
63 IdentifierInfo *Parser::getSEHExceptKeyword() {
71 Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies)
94 DiagnosticBuilder Parser::Diag(SourceLocation Loc, unsigned DiagID) {
98 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) {
108 void Parser::SuggestParentheses(SourceLocation Loc, unsigned DK,
131 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
177 bool Parser::ExpectAndConsumeSemi(unsigned DiagID) {
199 void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, unsigned TST) {
240 static bool HasFlagsSet(Parser::SkipUntilFlags L, Parser::SkipUntilFlags R) {
252 bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, SkipUntilFlags Flags) {
373 void Parser::EnterScope(unsigned ScopeFlags) {
384 void Parser::ExitScope() {
402 Parser::ParseScopeFlags::ParseScopeFlags(Parser *Self, unsigned ScopeFlags,
413 Parser::ParseScopeFlags::~ParseScopeFlags() {
423 Parser::~Parser() {
450 /// Initialize - Warm up the parser.
452 void Parser::Initialize() {
459 // Referenced in Parser::ParseObjCTypeQualifierList.
531 void Parser::LateTemplateParserCleanupCallback(void *P) {
535 DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(((Parser *)P)->TemplateIds);
540 bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result) {
620 Parser::DeclGroupPtrTy
621 Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs,
811 bool Parser::isDeclarationAfterDeclarator() {
830 bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) {
865 Parser::DeclGroupPtrTy
866 Parser::ParseDeclOrFunctionDefInternal(ParsedAttributesWithRange &attrs,
930 Parser::DeclGroupPtrTy
931 Parser::ParseDeclarationOrFunctionDefinition(ParsedAttributesWithRange &attrs,
961 Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
1150 void Parser::SkipFunctionBody() {
1174 void Parser::ParseKNRParamDeclarations(Declarator &D) {
1292 ExprResult Parser::ParseAsmStringLiteral() {
1317 ExprResult Parser::ParseSimpleAsm(SourceLocation *EndLoc) {
1356 TemplateIdAnnotation *Parser::takeTemplateIdAnnotation(const Token &tok) {
1363 void Parser::AnnotateScopeToken(CXXScopeSpec &SS, bool IsNewAnnotation) {
1390 Parser::AnnotatedNameKind
1391 Parser::TryAnnotateName(bool IsAddressOfOperand,
1522 bool Parser::TryKeywordIdentFallback(bool DisableKeyword) {
1555 bool Parser::TryAnnotateTypeOrScopeToken(bool EnteringContext, bool NeedType) {
1668 bool Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec(bool EnteringContext,
1784 bool Parser::TryAnnotateCXXScopeToken(bool EnteringContext) {
1802 bool Parser::isTokenEqualOrEqualTypo() {
1829 SourceLocation Parser::handleUnexpectedCodeCompletionToken() {
1855 void Parser::CodeCompleteDirective(bool InConditional) {
1859 void Parser::CodeCompleteInConditionalExclusion() {
1863 void Parser::CodeCompleteMacroName(bool IsDefinition) {
1867 void Parser::CodeCompletePreprocessorExpression() {
1871 void Parser::CodeCompleteMacroArgument(IdentifierInfo *Macro,
1878 void Parser::CodeCompleteNaturalLanguage() {
1882 bool Parser::ParseMicrosoftIfExistsCondition(IfExistsCondition& Result) {
1940 void Parser::ParseMicrosoftIfExistsExternalDeclaration() {
1977 Parser::DeclGroupPtrTy Parser::ParseModuleImport(SourceLocation AtLoc) {
2024 /// \brief Try recover parser when module annotation appears where it must not
2027 /// true if parser must bail out to top level and handle the token there.
2028 bool Parser::parseMisplacedModuleImport() {
2069 P.SkipUntil(SkipToTok, Parser::StopAtSemi);
2093 Parser::StopAtSemi | Parser::StopBeforeMatch) &&
2100 P.SkipUntil(Close, Parser::StopBeforeMatch);