Home | History | Annotate | Download | only in AST

Lines Matching defs: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;
141 // Allow @class command on @interface declarations.
230 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command,
255 Command->setDirection((ParamCommandComment::PassDirection)Direction,
259 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command,
264 assert(Command->getNumArgs() == 0);
266 if (!Command->isDirectionExplicit()) {
268 Command->setDirection(ParamCommandComment::In, /* Explicit = */ false);
274 Command->setArgs(llvm::makeArrayRef(A, 1));
277 void Sema::actOnParamCommandFinish(ParamCommandComment *Command,
279 Command->setParagraph(Paragraph);
280 checkBlockCommandEmptyParagraph(Command);
288 TParamCommandComment *Command =
293 Diag(Command->getLocation(),
296 << Command->getCommandNameRange(Traits);
298 return Command;
301 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command,
306 assert(Command->getNumArgs() == 0);
312 Command->setArgs(llvm::makeArrayRef(A, 1));
323 Command->setPosition(copyArray(llvm::makeArrayRef(Position)));
332 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)
589 // We allow the return command for all @properties because it can be used
612 Diag(Command->getLocation(),
614 << Command->getCommandMarker()
615 << Command->getCommandName(Traits)
617 << Command->getSourceRange();
622 Diag(Command->getLocation(),
624 << Command->getCommandMarker()
625 << Command->getCommandName(Traits)
626 << Command->getSourceRange();
629 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) {
630 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID());
634 BriefCommand = Command;
640 HeaderfileCommand = Command;
645 // We don't want to check this command for duplicates.
648 StringRef CommandName = Command->getCommandName(Traits);
650 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate)
651 << Command->getCommandMarker()
653 << Command->getSourceRange();
667 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
668 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand)
682 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync)
683 << Command->getSourceRange() << Command->getCommandMarker();
742 // found a \\param command or NULL if no documentation was found so far.