Lines Matching refs:Command

62 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command,  in actOnBlockCommandArgs()  argument
64 Command->setArgs(Args); in actOnBlockCommandArgs()
67 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command, in actOnBlockCommandFinish() argument
69 Command->setParagraph(Paragraph); in actOnBlockCommandFinish()
70 checkBlockCommandEmptyParagraph(Command); in actOnBlockCommandFinish()
71 checkBlockCommandDuplicate(Command); in actOnBlockCommandFinish()
75 checkReturnsCommand(Command); in actOnBlockCommandFinish()
76 checkDeprecatedCommand(Command); in actOnBlockCommandFinish()
85 ParamCommandComment *Command = in actOnParamCommandStart() local
90 Diag(Command->getLocation(), in actOnParamCommandStart()
93 << Command->getCommandNameRange(Traits); in actOnParamCommandStart()
95 return Command; in actOnParamCommandStart()
232 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command, in actOnParamCommandDirectionArg() argument
255 Command->setDirection(Direction, in actOnParamCommandDirectionArg()
259 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command, in actOnParamCommandParamNameArg() argument
264 assert(Command->getNumArgs() == 0); in actOnParamCommandParamNameArg()
266 if (!Command->isDirectionExplicit()) { in actOnParamCommandParamNameArg()
268 Command->setDirection(ParamCommandPassDirection::In, in actOnParamCommandParamNameArg()
273 Command->setArgs(ArrayRef(A, 1)); in actOnParamCommandParamNameArg()
276 void Sema::actOnParamCommandFinish(ParamCommandComment *Command, in actOnParamCommandFinish() argument
278 Command->setParagraph(Paragraph); in actOnParamCommandFinish()
279 checkBlockCommandEmptyParagraph(Command); in actOnParamCommandFinish()
287 TParamCommandComment *Command = in actOnTParamCommandStart() local
292 Diag(Command->getLocation(), in actOnTParamCommandStart()
295 << Command->getCommandNameRange(Traits); in actOnTParamCommandStart()
297 return Command; in actOnTParamCommandStart()
300 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command, in actOnTParamCommandParamNameArg() argument
305 assert(Command->getNumArgs() == 0); in actOnTParamCommandParamNameArg()
309 Command->setArgs(ArrayRef(A, 1)); in actOnTParamCommandParamNameArg()
320 Command->setPosition(copyArray(ArrayRef(Position))); in actOnTParamCommandParamNameArg()
329 PrevCommand = Command; in actOnTParamCommandParamNameArg()
357 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command, in actOnTParamCommandFinish() argument
359 Command->setParagraph(Paragraph); in actOnTParamCommandFinish()
360 checkBlockCommandEmptyParagraph(Command); in actOnTParamCommandFinish()
538 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { in checkBlockCommandEmptyParagraph() argument
539 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) in checkBlockCommandEmptyParagraph()
542 ParagraphComment *Paragraph = Command->getParagraph(); in checkBlockCommandEmptyParagraph()
545 if (Command->getNumArgs() > 0) in checkBlockCommandEmptyParagraph()
546 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph()
548 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph()
550 << Command->getCommandMarker() in checkBlockCommandEmptyParagraph()
551 << Command->getCommandName(Traits) in checkBlockCommandEmptyParagraph()
552 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
556 void Sema::checkReturnsCommand(const BlockCommandComment *Command) { in checkReturnsCommand() argument
557 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand) in checkReturnsCommand()
585 Diag(Command->getLocation(), in checkReturnsCommand()
587 << Command->getCommandMarker() in checkReturnsCommand()
588 << Command->getCommandName(Traits) in checkReturnsCommand()
590 << Command->getSourceRange(); in checkReturnsCommand()
595 Diag(Command->getLocation(), in checkReturnsCommand()
597 << Command->getCommandMarker() in checkReturnsCommand()
598 << Command->getCommandName(Traits) in checkReturnsCommand()
599 << Command->getSourceRange(); in checkReturnsCommand()
602 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { in checkBlockCommandDuplicate() argument
603 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID()); in checkBlockCommandDuplicate()
607 BriefCommand = Command; in checkBlockCommandDuplicate()
613 HeaderfileCommand = Command; in checkBlockCommandDuplicate()
621 StringRef CommandName = Command->getCommandName(Traits); in checkBlockCommandDuplicate()
623 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate) in checkBlockCommandDuplicate()
624 << Command->getCommandMarker() in checkBlockCommandDuplicate()
626 << Command->getSourceRange(); in checkBlockCommandDuplicate()
640 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) { in checkDeprecatedCommand() argument
641 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand) in checkDeprecatedCommand()
655 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync) in checkDeprecatedCommand()
656 << Command->getSourceRange() << Command->getCommandMarker(); in checkDeprecatedCommand()