Lines Matching defs:Command
61 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command,
63 Command->setArgs(Args);
66 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command,
68 Command->setParagraph(Paragraph);
69 checkBlockCommandEmptyParagraph(Command);
70 checkBlockCommandDuplicate(Command);
74 checkReturnsCommand(Command);
75 checkDeprecatedCommand(Command);
84 ParamCommandComment *Command =
89 Diag(Command->getLocation(),
92 << Command->getCommandNameRange(Traits);
94 return Command;
229 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command,
252 Command->setDirection(Direction,
256 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command,
261 assert(Command->getNumArgs() == 0);
263 if (!Command->isDirectionExplicit()) {
265 Command->setDirection(ParamCommandPassDirection::In,
270 Command->setArgs(llvm::ArrayRef(A, 1));
273 void Sema::actOnParamCommandFinish(ParamCommandComment *Command,
275 Command->setParagraph(Paragraph);
276 checkBlockCommandEmptyParagraph(Command);
284 TParamCommandComment *Command =
289 Diag(Command->getLocation(),
292 << Command->getCommandNameRange(Traits);
294 return Command;
297 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command,
302 assert(Command->getNumArgs() == 0);
306 Command->setArgs(llvm::ArrayRef(A, 1));
317 Command->setPosition(copyArray(llvm::ArrayRef(Position)));
326 PrevCommand = Command;
354 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command,
356 Command->setParagraph(Paragraph);
357 checkBlockCommandEmptyParagraph(Command);
535 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) {
536 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed)
539 ParagraphComment *Paragraph = Command->getParagraph();
542 if (Command->getNumArgs() > 0)
543 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd();
545 DiagLoc = Command->getCommandNameRange(Traits).getEnd();
547 << Command->getCommandMarker()
548 << Command->getCommandName(Traits)
549 << Command->getSourceRange();
553 void Sema::checkReturnsCommand(const BlockCommandComment *Command) {
554 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand)
582 Diag(Command->getLocation(),
584 << Command->getCommandMarker()
585 << Command->getCommandName(Traits)
587 << Command->getSourceRange();
592 Diag(Command->getLocation(),
594 << Command->getCommandMarker()
595 << Command->getCommandName(Traits)
596 << Command->getSourceRange();
599 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) {
600 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID());
604 BriefCommand = Command;
610 HeaderfileCommand = Command;
618 StringRef CommandName = Command->getCommandName(Traits);
620 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate)
621 << Command->getCommandMarker()
623 << Command->getSourceRange();
637 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
638 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand)
652 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync)
653 << Command->getSourceRange() << Command->getCommandMarker();