class Comment

Declaration

class Comment { /* full declaration omitted */ };

Description

Any part of the comment. Abstract class.

Declared at: clang/include/clang/AST/Comment.h:52

Member Variables

protected clang::SourceLocation Loc
Preferred location to show caret.
protected clang::SourceRange Range
Source range of this AST node.
protected anonymous struct / union

Method Overview

  • public Comment(clang::comments::Comment::CommentKind K, clang::SourceLocation LocBegin, clang::SourceLocation LocEnd)
  • public clang::comments::Comment::child_iterator child_begin() const
  • public unsigned int child_count() const
  • public clang::comments::Comment::child_iterator child_end() const
  • public void dump() const
  • public void dump(llvm::raw_ostream & OS, const clang::ASTContext & Context) const
  • public void dumpColor() const
  • public clang::SourceLocation getBeginLoc() const
  • public clang::comments::Comment::CommentKind getCommentKind() const
  • public const char * getCommentKindName() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::SourceLocation getLocation() const
  • public clang::SourceRange getSourceRange() const
  • protected void setLocation(clang::SourceLocation L)
  • protected void setSourceRange(clang::SourceRange SR)

Methods

Comment(clang::comments::Comment::CommentKind K,
        clang::SourceLocation LocBegin,
        clang::SourceLocation LocEnd)

Declared at: clang/include/clang/AST/Comment.h:202

Parameters

clang::comments::Comment::CommentKind K
clang::SourceLocation LocBegin
clang::SourceLocation LocEnd

clang::comments::Comment::child_iterator
child_begin() const

Declared at: clang/include/clang/AST/Comment.h:229

unsigned int child_count() const

Declared at: clang/include/clang/AST/Comment.h:234

clang::comments::Comment::child_iterator
child_end() const

Declared at: clang/include/clang/AST/Comment.h:230

void dump() const

Declared at: clang/include/clang/AST/Comment.h:215

void dump(llvm::raw_ostream& OS,
          const clang::ASTContext& Context) const

Declared at: clang/include/clang/AST/Comment.h:217

Parameters

llvm::raw_ostream& OS
const clang::ASTContext& Context

void dumpColor() const

Declared at: clang/include/clang/AST/Comment.h:216

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Comment.h:221

clang::comments::Comment::CommentKind
getCommentKind() const

Declared at: clang/include/clang/AST/Comment.h:209

const char* getCommentKindName() const

Declared at: clang/include/clang/AST/Comment.h:213

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Comment.h:223

clang::SourceLocation getLocation() const

Declared at: clang/include/clang/AST/Comment.h:225

clang::SourceRange getSourceRange() const

Declared at: clang/include/clang/AST/Comment.h:219

void setLocation(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Comment.h:181

Parameters

clang::SourceLocation L

void setSourceRange(clang::SourceRange SR)

Declared at: clang/include/clang/AST/Comment.h:177

Parameters

clang::SourceRange SR