Home | History | Annotate | Download | only in AST

Lines Matching full: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);
72 checkReturnsCommand(Command);
73 checkDeprecatedCommand(Command);
81 ParamCommandComment *Command =
86 Diag(Command->getLocation(),
89 << Command->getCommandNameRange(Traits);
91 return Command;
203 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command,
255 Command->setDirection(Direction, /* Explicit = */ true);
258 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command,
263 assert(Command->getNumArgs() == 0);
265 if (!Command->isDirectionExplicit()) {
267 Command->setDirection(ParamCommandComment::In, /* Explicit = */ false);
273 Command->setArgs(llvm::makeArrayRef(A, 1));
276 void Sema::actOnParamCommandFinish(ParamCommandComment *Command,
278 Command->setParagraph(Paragraph);
279 checkBlockCommandEmptyParagraph(Command);
287 TParamCommandComment *Command =
292 Diag(Command->getLocation(),
295 << Command->getCommandNameRange(Traits);
297 return Command;
300 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command,
305 assert(Command->getNumArgs() == 0);
311 Command->setArgs(llvm::makeArrayRef(A, 1));
322 Command->setPosition(copyArray(llvm::makeArrayRef(Position)));
333 TemplateParameterDocs[Arg] = Command;
363 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command,
365 Command->setParagraph(Paragraph);
366 checkBlockCommandEmptyParagraph(Command);
549 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) {
550 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed)
553 ParagraphComment *Paragraph = Command->getParagraph();
556 if (Command->getNumArgs() > 0)
557 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd();
559 DiagLoc = Command->getCommandNameRange(Traits).getEnd();
561 << Command->getCommandMarker()
562 << Command->getCommandName(Traits)
563 << Command->getSourceRange();
567 void Sema::checkReturnsCommand(const BlockCommandComment *Command) {
568 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand)
587 Diag(Command->getLocation(),
589 << Command->getCommandMarker()
590 << Command->getCommandName(Traits)
592 << Command->getSourceRange();
599 Diag(Command->getLocation(),
601 << Command->getCommandMarker()
602 << Command->getCommandName(Traits)
603 << Command->getSourceRange();
606 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) {
607 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID());
611 BriefCommand = Command;
617 ReturnsCommand = Command;
623 HeaderfileCommand = Command;
628 // We don't want to check this command for duplicates.
631 StringRef CommandName = Command->getCommandName(Traits);
633 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate)
634 << Command->getCommandMarker()
636 << Command->getSourceRange();
650 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) {
651 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand)
663 Diag(Command->getLocation(),
665 << Command->getSourceRange();
708 // found a \\param command or NULL if no documentation was found so far.