Lines Matching refs:PragmaName

506   StringRef PragmaName = Tok.getIdentifierInfo()->getName();  in HandlePragmaMSPragma()  local
512 PragmaHandler Handler = llvm::StringSwitch<PragmaHandler>(PragmaName) in HandlePragmaMSPragma()
520 if (!(this->*Handler)(PragmaName, PragmaLocation)) { in HandlePragmaMSPragma()
529 bool Parser::HandlePragmaMSSection(StringRef PragmaName, in HandlePragmaMSSection() argument
532 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSection()
539 << PragmaName; in HandlePragmaMSSection()
548 << PragmaName; in HandlePragmaMSSection()
565 << PragmaName; in HandlePragmaMSSection()
584 << PragmaName << Tok.getIdentifierInfo()->getName(); in HandlePragmaMSSection()
596 PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName; in HandlePragmaMSSection()
602 << PragmaName; in HandlePragmaMSSection()
610 bool Parser::HandlePragmaMSSegment(StringRef PragmaName, in HandlePragmaMSSegment() argument
613 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSegment()
628 << PragmaName; in HandlePragmaMSSegment()
643 << PragmaName; in HandlePragmaMSSegment()
648 PP.Diag(PragmaLocation, diag::warn_pragma_expected_punc) << PragmaName; in HandlePragmaMSSegment()
661 PP.Diag(PragmaLocation, DiagID) << PragmaName; in HandlePragmaMSSegment()
670 << PragmaName; in HandlePragmaMSSegment()
678 PP.Diag(PragmaLocation, diag::warn_pragma_expected_rparen) << PragmaName; in HandlePragmaMSSegment()
684 << PragmaName; in HandlePragmaMSSegment()
689 SegmentName, PragmaName); in HandlePragmaMSSegment()
694 bool Parser::HandlePragmaMSInitSeg(StringRef PragmaName, in HandlePragmaMSInitSeg() argument
702 PragmaName)) in HandlePragmaMSInitSeg()
734 << PragmaName; in HandlePragmaMSInitSeg()
741 PP.Diag(PragmaLocation, diag::warn_pragma_expected_init_seg) << PragmaName; in HandlePragmaMSInitSeg()
746 PragmaName) || in HandlePragmaMSInitSeg()
748 PragmaName)) in HandlePragmaMSInitSeg()
757 Token PragmaName; member
763 static std::string PragmaLoopHintString(Token PragmaName, Token Option) { in PragmaLoopHintString() argument
765 if (PragmaName.getIdentifierInfo()->getName() == "loop") { in PragmaLoopHintString()
769 assert(PragmaName.getIdentifierInfo()->getName() == "unroll" && in PragmaLoopHintString()
781 IdentifierInfo *PragmaNameInfo = Info->PragmaName.getIdentifierInfo(); in HandlePragmaLoopHint()
783 Actions.Context, Info->PragmaName.getLocation(), PragmaNameInfo); in HandlePragmaLoopHint()
802 Hint.Range = Info->PragmaName.getLocation(); in HandlePragmaLoopHint()
846 << PragmaLoopHintString(Info->PragmaName, Info->Option); in HandlePragmaLoopHint()
860 << PragmaLoopHintString(Info->PragmaName, Info->Option); in HandlePragmaLoopHint()
875 Hint.Range = SourceRange(Info->PragmaName.getLocation(), in HandlePragmaLoopHint()
1906 static bool ParseLoopHintValue(Preprocessor &PP, Token &Tok, Token PragmaName, in ParseLoopHintValue() argument
1942 Info.PragmaName = PragmaName; in ParseLoopHintValue()
1996 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()
2084 Token PragmaName = Tok; in HandlePragma() local
2089 Info->PragmaName = PragmaName; in HandlePragma()
2091 } else if (PragmaName.getIdentifierInfo()->getName() == "nounroll") { in HandlePragma()
2105 if (ParseLoopHintValue(PP, Tok, PragmaName, Option, ValueInParens, *Info)) in HandlePragma()
2125 TokenArray[0].setLocation(PragmaName.getLocation()); in HandlePragma()
2126 TokenArray[0].setAnnotationEndLoc(PragmaName.getLocation()); in HandlePragma()