clang 20.0.0git
Namespaces | Classes | Enumerations | Functions
clang::comments Namespace Reference

Namespaces

namespace  tok
 

Classes

class  BlockCommandComment
 A command that has zero or more word-like arguments (number of word-like arguments depends on command name) and a paragraph as an argument (e. More...
 
class  BlockContentComment
 Block content (contains inline content). More...
 
class  BriefParser
 A very simple comment parser that extracts "a brief description". More...
 
struct  CommandInfo
 Information about a single command. More...
 
class  CommandTraits
 This class provides information about commands that can be used in comments. More...
 
class  Comment
 Any part of the comment. More...
 
class  CommentVisitor
 
class  CommentVisitorBase
 
class  ConstCommentVisitor
 
struct  DeclInfo
 Information about the declaration, useful to clients of FullComment. More...
 
class  FullComment
 A full comment attached to a declaration, contains block content. More...
 
class  HTMLEndTagComment
 A closing HTML tag. More...
 
class  HTMLStartTagComment
 An opening HTML tag with attributes. More...
 
class  HTMLTagComment
 Abstract class for opening and closing HTML tags. More...
 
class  InlineCommandComment
 A command with word-like arguments that is considered inline content. More...
 
class  InlineContentComment
 Inline content (contained within a block). More...
 
class  Lexer
 Comment lexer. More...
 
class  ParagraphComment
 A single paragraph that contains inline content. More...
 
class  ParamCommandComment
 Doxygen \param command. More...
 
class  Parser
 Doxygen comment parser. More...
 
class  Sema
 
class  TextComment
 Plain text. More...
 
class  TextTokenRetokenizer
 Re-lexes a sequence of tok::text tokens. More...
 
class  Token
 Comment token. More...
 
class  TParamCommandComment
 Doxygen \tparam command, describes a template parameter. More...
 
class  VerbatimBlockComment
 A verbatim block command (e. More...
 
class  VerbatimBlockLineComment
 A line of text contained in a verbatim block. More...
 
class  VerbatimLineComment
 A verbatim line command. More...
 

Enumerations

enum  CommandMarkerKind { CMK_Backslash = 0 , CMK_At = 1 }
 Describes the syntax that was used in a documentation command. More...
 
enum class  CommentKind {
  None = 0 , COMMENT , COMMENT_RANGE , LAST_COMMENT_RANGE ,
  ABSTRACT_COMMENT
}
 
enum class  InlineCommandRenderKind {
  Normal , Bold , Monospaced , Emphasized ,
  Anchor
}
 The most appropriate rendering mode for this command, chosen on command semantics in Doxygen. More...
 
enum class  ParamCommandPassDirection { In , Out , InOut }
 

Functions

static TypeLoc lookThroughTypedefOrTypeAliasLocs (TypeLoc &SrcTL)
 
static bool getFunctionTypeLoc (TypeLoc TL, FunctionTypeLoc &ResFTL)
 
static bool isHTMLNamedCharacterReferenceCharacter (char C)
 
static bool isHTMLDecimalCharacterReferenceCharacter (char C)
 
static bool isHTMLHexCharacterReferenceCharacter (char C)
 
static StringRef convertCodePointToUTF8 (llvm::BumpPtrAllocator &Allocator, unsigned CodePoint)
 
static ParamCommandPassDirection getParamPassDirection (StringRef Arg)
 Turn a string into the corresponding PassDirection or -1 if it's not valid.
 
static bool isClassOrStructDeclImpl (const Decl *D)
 

Enumeration Type Documentation

◆ CommandMarkerKind

Describes the syntax that was used in a documentation command.

Exact values of this enumeration are important because they used to select parts of diagnostic messages. Audit diagnostics before changing or adding a new value.

Enumerator
CMK_Backslash 

Command started with a backslash character:

\foo
CMK_At 

Command started with an 'at' character:

@foo

Definition at line 38 of file Comment.h.

◆ CommentKind

enum class clang::comments::CommentKind
strong
Enumerator
None 
COMMENT 
COMMENT_RANGE 
LAST_COMMENT_RANGE 
ABSTRACT_COMMENT 

Definition at line 52 of file Comment.h.

◆ InlineCommandRenderKind

The most appropriate rendering mode for this command, chosen on command semantics in Doxygen.

Enumerator
Normal 
Bold 
Monospaced 
Emphasized 
Anchor 

Definition at line 326 of file Comment.h.

◆ ParamCommandPassDirection

Enumerator
In 
Out 
InOut 

Definition at line 708 of file Comment.h.

Function Documentation

◆ convertCodePointToUTF8()

static StringRef clang::comments::convertCodePointToUTF8 ( llvm::BumpPtrAllocator &  Allocator,
unsigned  CodePoint 
)
inlinestatic

Definition at line 39 of file CommentLexer.cpp.

◆ getFunctionTypeLoc()

static bool clang::comments::getFunctionTypeLoc ( TypeLoc  TL,
FunctionTypeLoc ResFTL 
)
static

◆ getParamPassDirection()

static ParamCommandPassDirection clang::comments::getParamPassDirection ( StringRef  Arg)
static

Turn a string into the corresponding PassDirection or -1 if it's not valid.

Definition at line 222 of file CommentSema.cpp.

References In, InOut, and Out.

Referenced by clang::comments::Sema::actOnParamCommandDirectionArg().

◆ isClassOrStructDeclImpl()

static bool clang::comments::isClassOrStructDeclImpl ( const Decl D)
static

Definition at line 875 of file CommentSema.cpp.

References D.

◆ isHTMLDecimalCharacterReferenceCharacter()

static bool clang::comments::isHTMLDecimalCharacterReferenceCharacter ( char  C)
inlinestatic

Definition at line 31 of file CommentLexer.cpp.

References clang::C, and clang::isDigit().

◆ isHTMLHexCharacterReferenceCharacter()

static bool clang::comments::isHTMLHexCharacterReferenceCharacter ( char  C)
inlinestatic

Definition at line 35 of file CommentLexer.cpp.

References clang::C, and clang::isHexDigit().

◆ isHTMLNamedCharacterReferenceCharacter()

static bool clang::comments::isHTMLNamedCharacterReferenceCharacter ( char  C)
inlinestatic

Definition at line 27 of file CommentLexer.cpp.

References clang::C, and clang::isLetter().

◆ lookThroughTypedefOrTypeAliasLocs()

static TypeLoc clang::comments::lookThroughTypedefOrTypeAliasLocs ( TypeLoc SrcTL)
static