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;
230 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command,
253 Command->setDirection(Direction,
257 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command,
262 assert(Command->getNumArgs() == 0);
264 if (!Command->isDirectionExplicit()) {
266 Command->setDirection(ParamCommandPassDirection::In,
271 Command->setArgs(llvm::ArrayRef(A, 1));
274 void Sema::actOnParamCommandFinish(ParamCommandComment *Command,
276 Command->setParagraph(Paragraph);
277 checkBlockCommandEmptyParagraph(Command);
285 TParamCommandComment *Command =
290 Diag(Command->getLocation(),
293 << Command->getCommandNameRange(Traits);
295 return Command;
298 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command,
303 assert(Command->getNumArgs() == 0);
307 Command->setArgs(llvm::ArrayRef(A, 1));
318 Command->setPosition(copyArray(llvm::ArrayRef(Position)));
327 PrevCommand = Command;
355 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command,
357 Command->setParagraph(Paragraph);
358 checkBlockCommandEmptyParagraph(Command);
536 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) {
537 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed)
540 ParagraphComment *Paragraph = Command->getParagraph();
543 if (Command->getNumArgs() > 0)
544 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd();
546 DiagLoc = Command->getCommandNameRange(Traits).getEnd();
548 << Command->getCommandMarker()
549 << Command->getCommandName(Traits)
550 << Command->getSourceRange();
554 void Sema::checkReturnsCommand(const BlockCommandComment *Command) {
555 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand)
583 Diag(Command->getLocation(),
585 << Command->getCommandMarker()
586 << Command->getCommandName(Traits)
588 << Command->getSourceRange();
593 Diag(Command->getLocation(),
595 << Command->getCommandMarker()
596 << Command->getCommandName(Traits)
597 << Command->getSourceRange();
600 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) {
601 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID());
605 BriefCommand = Command;
611 HeaderfileCommand = Command;
619 StringRef CommandName = Command->getCommandName(Traits);
621 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate)
622 << Command->getCommandMarker()
624 << Command->getSourceRange();
638 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
639 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand)
653 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync)
654 << Command->getSourceRange() << Command->getCommandMarker();