Home | History | Annotate | Download | only in AST

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);
71 checkReturnsCommand(Command);
72 checkDeprecatedCommand(Command);
80 ParamCommandComment *Command =
85 Diag(Command->getLocation(),
88 << Command->getCommandNameRange(Traits);
90 return Command;
134 // Allow @class command on @interface declarations.
213 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command,
265 Command->setDirection(Direction, /* Explicit = */ true);
268 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command,
273 assert(Command->getNumArgs() == 0);
275 if (!Command->isDirectionExplicit()) {
277 Command->setDirection(ParamCommandComment::In, /* Explicit = */ false);
283 Command->setArgs(llvm::makeArrayRef(A, 1));
286 void Sema::actOnParamCommandFinish(ParamCommandComment *Command,
288 Command->setParagraph(Paragraph);
289 checkBlockCommandEmptyParagraph(Command);
297 TParamCommandComment *Command =
302 Diag(Command->getLocation(),
305 << Command->getCommandNameRange(Traits);
307 return Command;
310 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command,
315 assert(Command->getNumArgs() == 0);
321 Command->setArgs(llvm::makeArrayRef(A, 1));
332 Command->setPosition(copyArray(llvm::makeArrayRef(Position)));
343 TemplateParameterDocs[Arg] = Command;
373 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command,
375 Command->setParagraph(Paragraph);
376 checkBlockCommandEmptyParagraph(Command);
559 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) {
560 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed)
563 ParagraphComment *Paragraph = Command->getParagraph();
566 if (Command->getNumArgs() > 0)
567 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd();
569 DiagLoc = Command->getCommandNameRange(Traits).getEnd();
571 << Command->getCommandMarker()
572 << Command->getCommandName(Traits)
573 << Command->getSourceRange();
577 void Sema::checkReturnsCommand(const BlockCommandComment *Command) {
578 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand)
597 Diag(Command->getLocation(),
599 << Command->getCommandMarker()
600 << Command->getCommandName(Traits)
602 << Command->getSourceRange();
609 Diag(Command->getLocation(),
611 << Command->getCommandMarker()
612 << Command->getCommandName(Traits)
613 << Command->getSourceRange();
616 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) {
617 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID());
621 BriefCommand = Command;
627 HeaderfileCommand = Command;
632 // We don't want to check this command for duplicates.
635 StringRef CommandName = Command->getCommandName(Traits);
637 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate)
638 << Command->getCommandMarker()
640 << Command->getSourceRange();
654 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
655 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand)
667 Diag(Command->getLocation(),
669 << Command->getSourceRange();
712 // found a \\param command or NULL if no documentation was found so far.