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()
228 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command, in actOnParamCommandDirectionArg() argument
253 Command->setDirection((ParamCommandComment::PassDirection)Direction, in actOnParamCommandDirectionArg()
257 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command, in actOnParamCommandParamNameArg() argument
262 assert(Command->getNumArgs() == 0); in actOnParamCommandParamNameArg()
264 if (!Command->isDirectionExplicit()) { in actOnParamCommandParamNameArg()
266 Command->setDirection(ParamCommandComment::In, /* Explicit = */ false); in actOnParamCommandParamNameArg()
272 Command->setArgs(llvm::makeArrayRef(A, 1)); in actOnParamCommandParamNameArg()
275 void Sema::actOnParamCommandFinish(ParamCommandComment *Command, in actOnParamCommandFinish() argument
277 Command->setParagraph(Paragraph); in actOnParamCommandFinish()
278 checkBlockCommandEmptyParagraph(Command); in actOnParamCommandFinish()
286 TParamCommandComment *Command = in actOnTParamCommandStart() local
291 Diag(Command->getLocation(), in actOnTParamCommandStart()
294 << Command->getCommandNameRange(Traits); in actOnTParamCommandStart()
296 return Command; in actOnTParamCommandStart()
299 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command, in actOnTParamCommandParamNameArg() argument
304 assert(Command->getNumArgs() == 0); in actOnTParamCommandParamNameArg()
310 Command->setArgs(llvm::makeArrayRef(A, 1)); in actOnTParamCommandParamNameArg()
321 Command->setPosition(copyArray(llvm::makeArrayRef(Position))); in actOnTParamCommandParamNameArg()
330 PrevCommand = Command; in actOnTParamCommandParamNameArg()
358 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command, in actOnTParamCommandFinish() argument
360 Command->setParagraph(Paragraph); in actOnTParamCommandFinish()
361 checkBlockCommandEmptyParagraph(Command); in actOnTParamCommandFinish()
563 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { in checkBlockCommandEmptyParagraph() argument
564 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) in checkBlockCommandEmptyParagraph()
567 ParagraphComment *Paragraph = Command->getParagraph(); in checkBlockCommandEmptyParagraph()
570 if (Command->getNumArgs() > 0) in checkBlockCommandEmptyParagraph()
571 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph()
573 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph()
575 << Command->getCommandMarker() in checkBlockCommandEmptyParagraph()
576 << Command->getCommandName(Traits) in checkBlockCommandEmptyParagraph()
577 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
581 void Sema::checkReturnsCommand(const BlockCommandComment *Command) { in checkReturnsCommand() argument
582 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand) in checkReturnsCommand()
604 Diag(Command->getLocation(), in checkReturnsCommand()
606 << Command->getCommandMarker() in checkReturnsCommand()
607 << Command->getCommandName(Traits) in checkReturnsCommand()
609 << Command->getSourceRange(); in checkReturnsCommand()
616 Diag(Command->getLocation(), in checkReturnsCommand()
618 << Command->getCommandMarker() in checkReturnsCommand()
619 << Command->getCommandName(Traits) in checkReturnsCommand()
620 << Command->getSourceRange(); in checkReturnsCommand()
623 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { in checkBlockCommandDuplicate() argument
624 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID()); in checkBlockCommandDuplicate()
628 BriefCommand = Command; in checkBlockCommandDuplicate()
634 HeaderfileCommand = Command; in checkBlockCommandDuplicate()
642 StringRef CommandName = Command->getCommandName(Traits); in checkBlockCommandDuplicate()
644 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate) in checkBlockCommandDuplicate()
645 << Command->getCommandMarker() in checkBlockCommandDuplicate()
647 << Command->getSourceRange(); in checkBlockCommandDuplicate()
661 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) { in checkDeprecatedCommand() argument
662 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand) in checkDeprecatedCommand()
676 Diag(Command->getLocation(), in checkDeprecatedCommand()
678 << Command->getSourceRange(); in checkDeprecatedCommand()