Lines Matching refs:PragmaName

523   StringRef PragmaName = Tok.getIdentifierInfo()->getName();  in HandlePragmaMSPragma()  local
529 PragmaHandler Handler = llvm::StringSwitch<PragmaHandler>(PragmaName) in HandlePragmaMSPragma()
537 if (!(this->*Handler)(PragmaName, PragmaLocation)) { in HandlePragmaMSPragma()
546 bool Parser::HandlePragmaMSSection(StringRef PragmaName, in HandlePragmaMSSection() argument
549 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSection()
556 << PragmaName; in HandlePragmaMSSection()
565 << PragmaName; in HandlePragmaMSSection()
582 << PragmaName; in HandlePragmaMSSection()
601 << PragmaName << Tok.getIdentifierInfo()->getName(); in HandlePragmaMSSection()
613 PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName; in HandlePragmaMSSection()
619 << PragmaName; in HandlePragmaMSSection()
627 bool Parser::HandlePragmaMSSegment(StringRef PragmaName, in HandlePragmaMSSegment() argument
630 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSegment()
645 << PragmaName; in HandlePragmaMSSegment()
660 << PragmaName; in HandlePragmaMSSegment()
665 PP.Diag(PragmaLocation, diag::warn_pragma_expected_punc) << PragmaName; in HandlePragmaMSSegment()
678 PP.Diag(PragmaLocation, DiagID) << PragmaName; in HandlePragmaMSSegment()
687 << PragmaName; in HandlePragmaMSSegment()
695 PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName; in HandlePragmaMSSegment()
701 << PragmaName; in HandlePragmaMSSegment()
706 SegmentName, PragmaName); in HandlePragmaMSSegment()
711 bool Parser::HandlePragmaMSInitSeg(StringRef PragmaName, in HandlePragmaMSInitSeg() argument
719 PragmaName)) in HandlePragmaMSInitSeg()
751 << PragmaName; in HandlePragmaMSInitSeg()
758 PP.Diag(PragmaLocation, diag::warn_pragma_expected_init_seg) << PragmaName; in HandlePragmaMSInitSeg()
763 PragmaName) || in HandlePragmaMSInitSeg()
765 PragmaName)) in HandlePragmaMSInitSeg()
774 Token PragmaName; member
780 static std::string PragmaLoopHintString(Token PragmaName, Token Option) { in PragmaLoopHintString() argument
782 if (PragmaName.getIdentifierInfo()->getName() == "loop") { in PragmaLoopHintString()
786 assert(PragmaName.getIdentifierInfo()->getName() == "unroll" && in PragmaLoopHintString()
798 IdentifierInfo *PragmaNameInfo = Info->PragmaName.getIdentifierInfo(); in HandlePragmaLoopHint()
800 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo); in HandlePragmaLoopHint()
818 Hint.Range = Info->PragmaName.getLocation(); in HandlePragmaLoopHint()
871 << PragmaLoopHintString(Info->PragmaName, Info->Option); in HandlePragmaLoopHint()
884 << PragmaLoopHintString(Info->PragmaName, Info->Option); in HandlePragmaLoopHint()
899 Hint.Range = SourceRange(Info->PragmaName.getLocation(), in HandlePragmaLoopHint()
1905 static bool ParseLoopHintValue(Preprocessor &PP, Token &Tok, Token PragmaName, in ParseLoopHintValue() argument
1941 Info.PragmaName = PragmaName; in ParseLoopHintValue()
1995 Token PragmaName = Tok; in HandlePragma() local
2034 if (ParseLoopHintValue(PP, Tok, PragmaName, Option, /*ValueInParens=*/true, in HandlePragma()
2042 LoopHintTok.setLocation(PragmaName.getLocation()); in HandlePragma()
2043 LoopHintTok.setAnnotationEndLoc(PragmaName.getLocation()); in HandlePragma()
2083 Token PragmaName = Tok; in HandlePragma() local
2088 Info->PragmaName = PragmaName; in HandlePragma()
2090 } else if (PragmaName.getIdentifierInfo()->getName() == "nounroll") { in HandlePragma()
2104 if (ParseLoopHintValue(PP, Tok, PragmaName, Option, ValueInParens, *Info)) in HandlePragma()
2124 TokenArray[0].setLocation(PragmaName.getLocation()); in HandlePragma()
2125 TokenArray[0].setAnnotationEndLoc(PragmaName.getLocation()); in HandlePragma()