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

#include "clang/AST/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 683 of file ASTContext.h.

Member Enumeration Documentation

◆ Kind

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 685 of file ASTContext.h.

Member Function Documentation

◆ getKind()

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

Definition at line 708 of file ASTContext.h.

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

◆ getOriginalDecl()

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

Definition at line 724 of file ASTContext.h.

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

◆ getRaw()

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

Definition at line 716 of file ASTContext.h.

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

◆ setKind()

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

Definition at line 712 of file ASTContext.h.

◆ setOriginalDecl()

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

Definition at line 728 of file ASTContext.h.

◆ setRaw()

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

Definition at line 720 of file ASTContext.h.


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