clang  3.7.0
Public Types | Public Member Functions | List of all members
clang::ASTContext::RawCommentAndCacheFlags Class Reference

#include <ASTContext.h>

Public Types

enum  Kind { NoCommentInDecl = 0, FromDecl, FromRedecl }
 

Public Member Functions

Kind getKind () const LLVM_READONLY
 
void setKind (Kind K)
 
const RawCommentgetRaw () const LLVM_READONLY
 
void setRaw (const RawComment *RC)
 
const DeclgetOriginalDecl () const LLVM_READONLY
 
void setOriginalDecl (const Decl *Orig)
 

Detailed Description

Definition at line 551 of file ASTContext.h.

Member Enumeration Documentation

Enumerator
NoCommentInDecl 

We searched for a comment attached to the particular declaration, but didn't find any.

getRaw() == 0.

FromDecl 

We have found a comment attached to this particular declaration.

  getRaw() != 0.  
FromRedecl 

This declaration does not have an attached comment, and we have searched the redeclaration chain.

If getRaw() == 0, the whole redeclaration chain does not have any comments.

If getRaw() != 0, it is a comment propagated from other redeclaration.

Definition at line 553 of file ASTContext.h.

Member Function Documentation

Kind clang::ASTContext::RawCommentAndCacheFlags::getKind ( ) const
inline

Definition at line 576 of file ASTContext.h.

Referenced by clang::ASTContext::getRawCommentForAnyRedecl().

const Decl* clang::ASTContext::RawCommentAndCacheFlags::getOriginalDecl ( ) const
inline

Definition at line 592 of file ASTContext.h.

Referenced by clang::ASTContext::getRawCommentForAnyRedecl().

const RawComment* clang::ASTContext::RawCommentAndCacheFlags::getRaw ( ) const
inline

Definition at line 584 of file ASTContext.h.

Referenced by clang::ASTContext::getRawCommentForAnyRedecl().

void clang::ASTContext::RawCommentAndCacheFlags::setKind ( Kind  K)
inline

Definition at line 580 of file ASTContext.h.

Referenced by clang::ASTContext::getRawCommentForAnyRedecl().

void clang::ASTContext::RawCommentAndCacheFlags::setOriginalDecl ( const Decl Orig)
inline

Definition at line 596 of file ASTContext.h.

Referenced by clang::ASTContext::getRawCommentForAnyRedecl().

void clang::ASTContext::RawCommentAndCacheFlags::setRaw ( const RawComment RC)
inline

Definition at line 588 of file ASTContext.h.

Referenced by clang::ASTContext::getRawCommentForAnyRedecl().


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