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((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()
270 Command->setArgs(llvm::ArrayRef(A, 1)); in actOnParamCommandParamNameArg()
273 void Sema::actOnParamCommandFinish(ParamCommandComment *Command, in actOnParamCommandFinish() argument
275 Command->setParagraph(Paragraph); in actOnParamCommandFinish()
276 checkBlockCommandEmptyParagraph(Command); in actOnParamCommandFinish()
284 TParamCommandComment *Command = in actOnTParamCommandStart() local
289 Diag(Command->getLocation(), in actOnTParamCommandStart()
292 << Command->getCommandNameRange(Traits); in actOnTParamCommandStart()
294 return Command; in actOnTParamCommandStart()
297 void Sema::actOnTParamCommandParamNameArg(TParamCommandComment *Command, in actOnTParamCommandParamNameArg() argument
302 assert(Command->getNumArgs() == 0); in actOnTParamCommandParamNameArg()
306 Command->setArgs(llvm::ArrayRef(A, 1)); in actOnTParamCommandParamNameArg()
317 Command->setPosition(copyArray(llvm::ArrayRef(Position))); in actOnTParamCommandParamNameArg()
326 PrevCommand = Command; in actOnTParamCommandParamNameArg()
354 void Sema::actOnTParamCommandFinish(TParamCommandComment *Command, in actOnTParamCommandFinish() argument
356 Command->setParagraph(Paragraph); in actOnTParamCommandFinish()
357 checkBlockCommandEmptyParagraph(Command); in actOnTParamCommandFinish()
537 void Sema::checkBlockCommandEmptyParagraph(BlockCommandComment *Command) { in checkBlockCommandEmptyParagraph() argument
538 if (Traits.getCommandInfo(Command->getCommandID())->IsEmptyParagraphAllowed) in checkBlockCommandEmptyParagraph()
541 ParagraphComment *Paragraph = Command->getParagraph(); in checkBlockCommandEmptyParagraph()
544 if (Command->getNumArgs() > 0) in checkBlockCommandEmptyParagraph()
545 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph()
547 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph()
549 << Command->getCommandMarker() in checkBlockCommandEmptyParagraph()
550 << Command->getCommandName(Traits) in checkBlockCommandEmptyParagraph()
551 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
555 void Sema::checkReturnsCommand(const BlockCommandComment *Command) { in checkReturnsCommand() argument
556 if (!Traits.getCommandInfo(Command->getCommandID())->IsReturnsCommand) in checkReturnsCommand()
584 Diag(Command->getLocation(), in checkReturnsCommand()
586 << Command->getCommandMarker() in checkReturnsCommand()
587 << Command->getCommandName(Traits) in checkReturnsCommand()
589 << Command->getSourceRange(); in checkReturnsCommand()
594 Diag(Command->getLocation(), in checkReturnsCommand()
596 << Command->getCommandMarker() in checkReturnsCommand()
597 << Command->getCommandName(Traits) in checkReturnsCommand()
598 << Command->getSourceRange(); in checkReturnsCommand()
601 void Sema::checkBlockCommandDuplicate(const BlockCommandComment *Command) { in checkBlockCommandDuplicate() argument
602 const CommandInfo *Info = Traits.getCommandInfo(Command->getCommandID()); in checkBlockCommandDuplicate()
606 BriefCommand = Command; in checkBlockCommandDuplicate()
612 HeaderfileCommand = Command; in checkBlockCommandDuplicate()
620 StringRef CommandName = Command->getCommandName(Traits); in checkBlockCommandDuplicate()
622 Diag(Command->getLocation(), diag::warn_doc_block_command_duplicate) in checkBlockCommandDuplicate()
623 << Command->getCommandMarker() in checkBlockCommandDuplicate()
625 << Command->getSourceRange(); in checkBlockCommandDuplicate()
639 void Sema::checkDeprecatedCommand(const BlockCommandComment *Command) { in checkDeprecatedCommand() argument
640 if (!Traits.getCommandInfo(Command->getCommandID())->IsDeprecatedCommand) in checkDeprecatedCommand()
654 Diag(Command->getLocation(), diag::warn_doc_deprecated_not_sync) in checkDeprecatedCommand()
655 << Command->getSourceRange() << Command->getCommandMarker(); in checkDeprecatedCommand()