Lines Matching refs:Command

62 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command,
64 Command->setArgs(Args);
67 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command,
69 Command->setParagraph(Paragraph);
70 checkBlockCommandEmptyParagraph(Command);
71 checkBlockCommandDuplicate(Command);
75 checkReturnsCommand(Command);
76 checkDeprecatedCommand(Command);
85 ParamCommandComment *Command =
90 Diag(Command->getLocation(),
93 << Command->getCommandNameRange(Traits);
95 return Command;
228 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command,
253 Command->setDirection((ParamCommandComment::PassDirection)Direction,
257 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command,
262 assert(Command->getNumArgs() == 0);
264 if (!Command->isDirectionExplicit()) {
266 Command->setDirection(ParamCommandComment::In, /* Explicit = */ false);
272 Command->setArgs(llvm::makeArrayRef(A, 1));
275 void Sema::actOnParamCommandFinish(ParamCommandComment *Command,
277 Command->setParagraph(Paragraph);
278 checkBlockCommandEmptyParagraph(Command);
286 TParamCommandComment *Command =
291 Diag(Command->getLocation(),
294 << Command->getCommandNameRange(Traits);
296 return Command;
299 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command,
304 assert(Command->getNumArgs() == 0);
310 Command->setArgs(llvm::makeArrayRef(A, 1));
321 Command->setPosition(copyArray(llvm::makeArrayRef(Position)));
330 PrevCommand = Command;
360 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command,
362 Command->setParagraph(Paragraph);
363 checkBlockCommandEmptyParagraph(Command);
565 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) {
566 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed)
569 ParagraphComment *Paragraph = Command->getParagraph();
572 if (Command->getNumArgs() > 0)
573 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd();
575 DiagLoc = Command->getCommandNameRange(Traits).getEnd();
577 << Command->getCommandMarker()
578 << Command->getCommandName(Traits)
579 << Command->getSourceRange();
583 void Sema::checkReturnsCommand(const BlockCommandComment *Command) {
584 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand)
606 Diag(Command->getLocation(),
608 << Command->getCommandMarker()
609 << Command->getCommandName(Traits)
611 << Command->getSourceRange();
618 Diag(Command->getLocation(),
620 << Command->getCommandMarker()
621 << Command->getCommandName(Traits)
622 << Command->getSourceRange();
625 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) {
626 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID());
630 BriefCommand = Command;
636 HeaderfileCommand = Command;
644 StringRef CommandName = Command->getCommandName(Traits);
646 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate)
647 << Command->getCommandMarker()
649 << Command->getSourceRange();
663 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
664 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand)
678 Diag(Command->getLocation(),
680 << Command->getSourceRange();