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 CommandInfogetCommandInfoOrNULL (StringRef Name) const
const CommandInfogetCommandInfo (StringRef Name) const
const CommandInfogetTypoCorrectCommandInfo (StringRef Typo) const
const CommandInfogetCommandInfo (unsigned CommandID) const
const CommandInforegisterUnknownCommand (StringRef CommandName)
const CommandInforegisterBlockCommand (StringRef CommandName)

Static Public Member Functions

static const CommandInfogetBuiltinCommandInfo (StringRef Name)
static const CommandInfogetBuiltinCommandInfo (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: