clang API Documentation

Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
clang::comments::Comment Class Reference

#include <Comment.h>

Inheritance diagram for clang::comments::Comment:
Inheritance graph
[legend]
Collaboration diagram for clang::comments::Comment:
Collaboration graph
[legend]

List of all members.

Classes

class  BlockCommandCommentBitfields
class  CommentBitfields
class  HTMLStartTagCommentBitfields
class  HTMLTagCommentBitfields
class  InlineCommandCommentBitfields
class  InlineContentCommentBitfields
class  ParagraphCommentBitfields
class  ParamCommandCommentBitfields
class  TextCommentBitfields

Public Types

enum  CommentKind { NoCommentKind = 0 }
typedef Comment *const * child_iterator

Public Member Functions

 Comment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd)
CommentKind getCommentKind () const
const char * getCommentKindName () const
void dump () const
void dumpColor () const
void dump (const ASTContext &Context) const
void dump (raw_ostream &OS, const CommandTraits *Traits, const SourceManager *SM) const
SourceRange getSourceRange () const LLVM_READONLY
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceLocation getLocation () const LLVM_READONLY
child_iterator child_begin () const
child_iterator child_end () const
unsigned child_count () const

Protected Types

enum  { NumCommentBits = 8 }
enum  { NumInlineContentCommentBits = NumCommentBits + 1 }
enum  { NumTextCommentBits = NumInlineContentCommentBits + 2 }
enum  { NumInlineCommandCommentBits }
enum  { NumHTMLTagCommentBits = NumInlineContentCommentBits + 1 }
enum  { NumHTMLStartTagCommentBits = NumHTMLTagCommentBits + 1 }
enum  { NumParagraphCommentBits = NumCommentBits + 2 }
enum  { NumBlockCommandCommentBits }
enum  { NumParamCommandCommentBits = NumBlockCommandCommentBits + 3 }

Protected Member Functions

void setSourceRange (SourceRange SR)
void setLocation (SourceLocation L)

Protected Attributes

SourceLocation Loc
 Preferred location to show caret.
SourceRange Range
 Source range of this AST node.
union {
   CommentBitfields   CommentBits
   InlineContentCommentBitfields   InlineContentCommentBits
   TextCommentBitfields   TextCommentBits
   InlineCommandCommentBitfields   InlineCommandCommentBits
   HTMLTagCommentBitfields   HTMLTagCommentBits
   HTMLStartTagCommentBitfields   HTMLStartTagCommentBits
   ParagraphCommentBitfields   ParagraphCommentBits
   BlockCommandCommentBitfields   BlockCommandCommentBits
   ParamCommandCommentBitfields   ParamCommandCommentBits
}; 

Detailed Description

Any part of the comment. Abstract class.

Definition at line 53 of file Comment.h.


Member Typedef Documentation

Definition at line 228 of file Comment.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
NumParagraphCommentBits 

Definition at line 136 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumBlockCommandCommentBits 

Definition at line 149 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumParamCommandCommentBits 

Definition at line 163 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumCommentBits 

Definition at line 67 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumInlineContentCommentBits 

Definition at line 78 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumTextCommentBits 

Definition at line 91 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumInlineCommandCommentBits 

Definition at line 101 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumHTMLTagCommentBits 

Definition at line 112 of file Comment.h.

anonymous enum [protected]
Enumerator:
NumHTMLStartTagCommentBits 

Definition at line 123 of file Comment.h.

Enumerator:
NoCommentKind 

Definition at line 186 of file Comment.h.


Constructor & Destructor Documentation

Definition at line 197 of file Comment.h.

References CommentBits.


Member Function Documentation

Definition at line 235 of file Comment.h.

References child_begin(), and child_end().

LLVM_DUMP_METHOD void Comment::dump ( ) const

Definition at line 2268 of file ASTDumper.cpp.

References dump().

LLVM_DUMP_METHOD void Comment::dump ( const ASTContext Context) const
void Comment::dump ( raw_ostream &  OS,
const CommandTraits Traits,
const SourceManager SM 
) const

Definition at line 2277 of file ASTDumper.cpp.

LLVM_DUMP_METHOD void Comment::dumpColor ( ) const

Definition at line 2284 of file ASTDumper.cpp.

Definition at line 22 of file Comment.cpp.

References getCommentKind(), and NoCommentKind.

void clang::comments::Comment::setLocation ( SourceLocation  L) [inline, protected]
void clang::comments::Comment::setSourceRange ( SourceRange  SR) [inline, protected]

Member Data Documentation

union { ... } [protected]

Definition at line 166 of file Comment.h.

Referenced by Comment(), and getCommentKind().

Preferred location to show caret.

Definition at line 56 of file Comment.h.

Referenced by getLocation(), and setLocation().


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