clang API Documentation
#include <CommentCommandTraits.h>
Public Types | |
enum | KnownCommandIDs |
Public Member Functions | |
CommandTraits (llvm::BumpPtrAllocator &Allocator, const CommentOptions &CommentOptions) | |
void | registerCommentOptions (const CommentOptions &CommentOptions) |
const CommandInfo * | getCommandInfoOrNULL (StringRef Name) const |
const CommandInfo * | getCommandInfo (StringRef Name) const |
const CommandInfo * | getTypoCorrectCommandInfo (StringRef Typo) const |
const CommandInfo * | getCommandInfo (unsigned CommandID) const |
const CommandInfo * | registerUnknownCommand (StringRef CommandName) |
const CommandInfo * | registerBlockCommand (StringRef CommandName) |
Static Public Member Functions | |
static const CommandInfo * | getBuiltinCommandInfo (StringRef Name) |
static const CommandInfo * | getBuiltinCommandInfo (unsigned CommandID) |
This class provides information about commands that can be used in comments.
Definition at line 128 of file CommentCommandTraits.h.
Definition at line 130 of file CommentCommandTraits.h.
clang::comments::CommandTraits::CommandTraits | ( | llvm::BumpPtrAllocator & | Allocator, |
const CommentOptions & | CommentOptions | ||
) |
Definition at line 18 of file CommentCommandTraits.cpp.
References registerCommentOptions().
static const CommandInfo* clang::comments::CommandTraits::getBuiltinCommandInfo | ( | StringRef | Name | ) | [static] |
Name
is not a builtin command. Referenced by getCommandInfo(), and getCommandInfoOrNULL().
const CommandInfo * clang::comments::CommandTraits::getBuiltinCommandInfo | ( | unsigned | CommandID | ) | [static] |
CommandID
is not a builtin command. Definition at line 116 of file CommentCommandTraits.cpp.
const CommandInfo* clang::comments::CommandTraits::getCommandInfo | ( | StringRef | Name | ) | const [inline] |
Definition at line 146 of file CommentCommandTraits.h.
References getCommandInfoOrNULL().
Referenced by clang::comments::Sema::actOnInlineCommand(), clang::comments::Sema::actOnVerbatimBlockStart(), clang::comments::Sema::checkBlockCommandDuplicate(), clang::comments::Sema::checkBlockCommandEmptyParagraph(), clang::comments::Sema::checkContainerDecl(), clang::comments::Sema::checkContainerDeclVerbatimLine(), clang::comments::Sema::checkDeprecatedCommand(), clang::comments::Sema::checkFunctionDeclVerbatimLine(), clang::comments::Sema::checkReturnsCommand(), clang::comments::InlineCommandComment::getCommandName(), clang::comments::BlockCommandComment::getCommandName(), clang::comments::Sema::getInlineCommandRenderKind(), clang::comments::BriefParser::Parse(), clang::comments::Parser::parseBlockCommand(), clang::comments::Parser::parseParagraphOrBlockCommand(), and clang::comments::Parser::parseVerbatimBlock().
const CommandInfo * clang::comments::CommandTraits::getCommandInfo | ( | unsigned | CommandID | ) | const |
Definition at line 40 of file CommentCommandTraits.cpp.
References getBuiltinCommandInfo().
const CommandInfo * clang::comments::CommandTraits::getCommandInfoOrNULL | ( | StringRef | Name | ) | const |
Definition at line 34 of file CommentCommandTraits.cpp.
References getBuiltinCommandInfo().
Referenced by getCommandInfo().
const CommandInfo * clang::comments::CommandTraits::getTypoCorrectCommandInfo | ( | StringRef | Typo | ) | const |
Definition at line 47 of file CommentCommandTraits.cpp.
References BestEditDistance, and MaxEditDistance.
const CommandInfo * clang::comments::CommandTraits::registerBlockCommand | ( | StringRef | CommandName | ) |
Definition at line 110 of file CommentCommandTraits.cpp.
References clang::comments::CommandInfo::IsBlockCommand.
Referenced by registerCommentOptions().
void clang::comments::CommandTraits::registerCommentOptions | ( | const CommentOptions & | CommentOptions | ) |
Definition at line 24 of file CommentCommandTraits.cpp.
References clang::CommentOptions::BlockCommandNames, and registerBlockCommand().
Referenced by CommandTraits().
const CommandInfo * clang::comments::CommandTraits::registerUnknownCommand | ( | StringRef | CommandName | ) |
Definition at line 103 of file CommentCommandTraits.cpp.
References clang::comments::CommandInfo::IsUnknownCommand.
Referenced by clang::comments::Sema::actOnUnknownCommand().