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()
230 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command, in actOnParamCommandDirectionArg() argument
253 Command->setDirection(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(ParamCommandPassDirection::In, in actOnParamCommandParamNameArg()
271 Command->setArgs(llvm::ArrayRef(A, 1)); in actOnParamCommandParamNameArg()
274 void Sema::actOnParamCommandFinish(ParamCommandComment *Command, in actOnParamCommandFinish() argument
276 Command->setParagraph(Paragraph); in actOnParamCommandFinish()
277 checkBlockCommandEmptyParagraph(Command); in actOnParamCommandFinish()
285 TParamCommandComment *Command = in actOnTParamCommandStart() local
290 Diag(Command->getLocation(), in actOnTParamCommandStart()
293 << Command->getCommandNameRange(Traits); in actOnTParamCommandStart()
295 return Command; in actOnTParamCommandStart()
298 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command, in actOnTParamCommandParamNameArg() argument
303 assert(Command->getNumArgs() == 0); in actOnTParamCommandParamNameArg()
307 Command->setArgs(llvm::ArrayRef(A, 1)); in actOnTParamCommandParamNameArg()
318 Command->setPosition(copyArray(llvm::ArrayRef(Position))); in actOnTParamCommandParamNameArg()
327 PrevCommand = Command; in actOnTParamCommandParamNameArg()
355 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command, in actOnTParamCommandFinish() argument
357 Command->setParagraph(Paragraph); in actOnTParamCommandFinish()
358 checkBlockCommandEmptyParagraph(Command); in actOnTParamCommandFinish()
536 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { in checkBlockCommandEmptyParagraph() argument
537 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) in checkBlockCommandEmptyParagraph()
540 ParagraphComment *Paragraph = Command->getParagraph(); in checkBlockCommandEmptyParagraph()
543 if (Command->getNumArgs() > 0) in checkBlockCommandEmptyParagraph()
544 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph()
546 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph()
548 << Command->getCommandMarker() in checkBlockCommandEmptyParagraph()
549 << Command->getCommandName(Traits) in checkBlockCommandEmptyParagraph()
550 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
554 void Sema::checkReturnsCommand(const BlockCommandComment *Command) { in checkReturnsCommand() argument
555 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand) in checkReturnsCommand()
583 Diag(Command->getLocation(), in checkReturnsCommand()
585 << Command->getCommandMarker() in checkReturnsCommand()
586 << Command->getCommandName(Traits) in checkReturnsCommand()
588 << Command->getSourceRange(); in checkReturnsCommand()
593 Diag(Command->getLocation(), in checkReturnsCommand()
595 << Command->getCommandMarker() in checkReturnsCommand()
596 << Command->getCommandName(Traits) in checkReturnsCommand()
597 << Command->getSourceRange(); in checkReturnsCommand()
600 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { in checkBlockCommandDuplicate() argument
601 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID()); in checkBlockCommandDuplicate()
605 BriefCommand = Command; in checkBlockCommandDuplicate()
611 HeaderfileCommand = Command; in checkBlockCommandDuplicate()
619 StringRef CommandName = Command->getCommandName(Traits); in checkBlockCommandDuplicate()
621 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate) in checkBlockCommandDuplicate()
622 << Command->getCommandMarker() in checkBlockCommandDuplicate()
624 << Command->getSourceRange(); in checkBlockCommandDuplicate()
638 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) { in checkDeprecatedCommand() argument
639 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand) in checkDeprecatedCommand()
653 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync) in checkDeprecatedCommand()
654 << Command->getSourceRange() << Command->getCommandMarker(); in checkDeprecatedCommand()