clang 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::comments::CommandTraits Class Reference

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

#include "clang/AST/CommentCommandTraits.h"

Public Types

enum  KnownCommandIDs { KCI_Last }
 

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 149 of file CommentCommandTraits.h.

Member Enumeration Documentation

◆ KnownCommandIDs

Enumerator
KCI_Last 

Definition at line 151 of file CommentCommandTraits.h.

Constructor & Destructor Documentation

◆ CommandTraits()

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

Definition at line 18 of file CommentCommandTraits.cpp.

References registerCommentOptions().

Member Function Documentation

◆ getBuiltinCommandInfo() [1/2]

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().

◆ getBuiltinCommandInfo() [2/2]

const CommandInfo * clang::comments::CommandTraits::getBuiltinCommandInfo ( unsigned  CommandID)
static
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.

◆ getCommandInfo() [1/2]

const CommandInfo * clang::comments::CommandTraits::getCommandInfo ( StringRef  Name) const
inline

◆ getCommandInfo() [2/2]

const CommandInfo * clang::comments::CommandTraits::getCommandInfo ( unsigned  CommandID) const

Definition at line 40 of file CommentCommandTraits.cpp.

References getBuiltinCommandInfo().

◆ getCommandInfoOrNULL()

const CommandInfo * clang::comments::CommandTraits::getCommandInfoOrNULL ( StringRef  Name) const
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().

◆ getTypoCorrectCommandInfo()

const CommandInfo * clang::comments::CommandTraits::getTypoCorrectCommandInfo ( StringRef  Typo) const

Definition at line 47 of file CommentCommandTraits.cpp.

References abs().

◆ registerBlockCommand()

const CommandInfo * clang::comments::CommandTraits::registerBlockCommand ( StringRef  CommandName)

◆ registerCommentOptions()

void clang::comments::CommandTraits::registerCommentOptions ( const CommentOptions CommentOptions)

◆ registerUnknownCommand()

const CommandInfo * clang::comments::CommandTraits::registerUnknownCommand ( StringRef  CommandName)

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