clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::comments::CommandTraits Class Reference

#include <CommentCommandTraits.h>

List of all members.

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)

Detailed Description

This class provides information about commands that can be used in comments.

Definition at line 128 of file CommentCommandTraits.h.


Member Enumeration Documentation

Definition at line 130 of file CommentCommandTraits.h.


Constructor & Destructor Documentation

clang::comments::CommandTraits::CommandTraits ( llvm::BumpPtrAllocator &  Allocator,
const CommentOptions &  CommentOptions 
)

Definition at line 18 of file CommentCommandTraits.cpp.

References registerCommentOptions().


Member Function Documentation

static const CommandInfo* clang::comments::CommandTraits::getBuiltinCommandInfo ( StringRef  Name) [static]
Returns:
a CommandInfo object for a given command name or NULL if Name is not a builtin command.

Referenced by getCommandInfo(), and getCommandInfoOrNULL().

Returns:
a CommandInfo object for a given command ID or NULL if 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 40 of file CommentCommandTraits.cpp.

References getBuiltinCommandInfo().

Returns:
a CommandInfo object for a given command name or NULL if no CommandInfo object exists for this command.

Definition at line 34 of file CommentCommandTraits.cpp.

References getBuiltinCommandInfo().

Referenced by getCommandInfo().

Definition at line 47 of file CommentCommandTraits.cpp.

References BestEditDistance, and MaxEditDistance.


The documentation for this class was generated from the following files: