Lines Matching refs:Command
62 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command, in actOnBlockCommandArgs() argument
64 Command->setArgs(Args); in actOnBlockCommandArgs()
67 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command, in actOnBlockCommandFinish() argument
69 Command->setParagraph(Paragraph); in actOnBlockCommandFinish()
70 checkBlockCommandEmptyParagraph(Command); in actOnBlockCommandFinish()
71 checkBlockCommandDuplicate(Command); in actOnBlockCommandFinish()
75 checkReturnsCommand(Command); in actOnBlockCommandFinish()
76 checkDeprecatedCommand(Command); in actOnBlockCommandFinish()
85 ParamCommandComment *Command = in actOnParamCommandStart() local
90 Diag(Command->getLocation(), in actOnParamCommandStart()
93 << Command->getCommandNameRange(Traits); in actOnParamCommandStart()
95 return Command; in actOnParamCommandStart()
230 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command, in actOnParamCommandDirectionArg() argument
255 Command->setDirection((ParamCommandComment::PassDirection)Direction, in actOnParamCommandDirectionArg()
259 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command, in actOnParamCommandParamNameArg() argument
264 assert(Command->getNumArgs() == 0); in actOnParamCommandParamNameArg()
266 if (!Command->isDirectionExplicit()) { in actOnParamCommandParamNameArg()
268 Command->setDirection(ParamCommandComment::In, /* Explicit = */ false); in actOnParamCommandParamNameArg()
274 Command->setArgs(llvm::makeArrayRef(A, 1)); in actOnParamCommandParamNameArg()
277 void Sema::actOnParamCommandFinish(ParamCommandComment *Command, in actOnParamCommandFinish() argument
279 Command->setParagraph(Paragraph); in actOnParamCommandFinish()
280 checkBlockCommandEmptyParagraph(Command); in actOnParamCommandFinish()
288 TParamCommandComment *Command = in actOnTParamCommandStart() local
293 Diag(Command->getLocation(), in actOnTParamCommandStart()
296 << Command->getCommandNameRange(Traits); in actOnTParamCommandStart()
298 return Command; in actOnTParamCommandStart()
301 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command, in actOnTParamCommandParamNameArg() argument
306 assert(Command->getNumArgs() == 0); in actOnTParamCommandParamNameArg()
312 Command->setArgs(llvm::makeArrayRef(A, 1)); in actOnTParamCommandParamNameArg()
323 Command->setPosition(copyArray(llvm::makeArrayRef(Position))); in actOnTParamCommandParamNameArg()
332 PrevCommand = Command; in actOnTParamCommandParamNameArg()
360 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command, in actOnTParamCommandFinish() argument
362 Command->setParagraph(Paragraph); in actOnTParamCommandFinish()
363 checkBlockCommandEmptyParagraph(Command); in actOnTParamCommandFinish()
565 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { in checkBlockCommandEmptyParagraph() argument
566 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) in checkBlockCommandEmptyParagraph()
569 ParagraphComment *Paragraph = Command->getParagraph(); in checkBlockCommandEmptyParagraph()
572 if (Command->getNumArgs() > 0) in checkBlockCommandEmptyParagraph()
573 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph()
575 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph()
577 << Command->getCommandMarker() in checkBlockCommandEmptyParagraph()
578 << Command->getCommandName(Traits) in checkBlockCommandEmptyParagraph()
579 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
583 void Sema::checkReturnsCommand(const BlockCommandComment *Command) { in checkReturnsCommand() argument
584 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand) in checkReturnsCommand()
612 Diag(Command->getLocation(), in checkReturnsCommand()
614 << Command->getCommandMarker() in checkReturnsCommand()
615 << Command->getCommandName(Traits) in checkReturnsCommand()
617 << Command->getSourceRange(); in checkReturnsCommand()
622 Diag(Command->getLocation(), in checkReturnsCommand()
624 << Command->getCommandMarker() in checkReturnsCommand()
625 << Command->getCommandName(Traits) in checkReturnsCommand()
626 << Command->getSourceRange(); in checkReturnsCommand()
629 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { in checkBlockCommandDuplicate() argument
630 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID()); in checkBlockCommandDuplicate()
634 BriefCommand = Command; in checkBlockCommandDuplicate()
640 HeaderfileCommand = Command; in checkBlockCommandDuplicate()
648 StringRef CommandName = Command->getCommandName(Traits); in checkBlockCommandDuplicate()
650 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate) in checkBlockCommandDuplicate()
651 << Command->getCommandMarker() in checkBlockCommandDuplicate()
653 << Command->getSourceRange(); in checkBlockCommandDuplicate()
667 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) { in checkDeprecatedCommand() argument
668 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand) in checkDeprecatedCommand()
682 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync) in checkDeprecatedCommand()
683 << Command->getSourceRange() << Command->getCommandMarker(); in checkDeprecatedCommand()