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()
360 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command, in actOnTParamCommandFinish() argument
362 Command->setParagraph(Paragraph); in actOnTParamCommandFinish()
363 checkBlockCommandEmptyParagraph(Command); in actOnTParamCommandFinish()
565 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { in checkBlockCommandEmptyParagraph() argument
566 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) in checkBlockCommandEmptyParagraph()
569 ParagraphComment *Paragraph = Command->getParagraph(); in checkBlockCommandEmptyParagraph()
572 if (Command->getNumArgs() > 0) in checkBlockCommandEmptyParagraph()
573 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph()
575 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph()
577 << Command->getCommandMarker() in checkBlockCommandEmptyParagraph()
578 << Command->getCommandName(Traits) in checkBlockCommandEmptyParagraph()
579 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
583 void Sema::checkReturnsCommand(const BlockCommandComment *Command) { in checkReturnsCommand() argument
584 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand) in checkReturnsCommand()
606 Diag(Command->getLocation(), in checkReturnsCommand()
608 << Command->getCommandMarker() in checkReturnsCommand()
609 << Command->getCommandName(Traits) in checkReturnsCommand()
611 << Command->getSourceRange(); in checkReturnsCommand()
618 Diag(Command->getLocation(), in checkReturnsCommand()
620 << Command->getCommandMarker() in checkReturnsCommand()
621 << Command->getCommandName(Traits) in checkReturnsCommand()
622 << Command->getSourceRange(); in checkReturnsCommand()
625 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { in checkBlockCommandDuplicate() argument
626 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID()); in checkBlockCommandDuplicate()
630 BriefCommand = Command; in checkBlockCommandDuplicate()
636 HeaderfileCommand = Command; in checkBlockCommandDuplicate()
644 StringRef CommandName = Command->getCommandName(Traits); in checkBlockCommandDuplicate()
646 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate) in checkBlockCommandDuplicate()
647 << Command->getCommandMarker() in checkBlockCommandDuplicate()
649 << Command->getSourceRange(); in checkBlockCommandDuplicate()
663 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) { in checkDeprecatedCommand() argument
664 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand) in checkDeprecatedCommand()
678 Diag(Command->getLocation(), in checkDeprecatedCommand()
680 << Command->getSourceRange(); in checkDeprecatedCommand()