clang API Documentation
#include <ASTContext.h>
Public Types | |
enum | Kind { NoCommentInDecl = 0, FromDecl, FromRedecl } |
Public Member Functions | |
Kind | getKind () const LLVM_READONLY |
void | setKind (Kind K) |
const RawComment * | getRaw () const LLVM_READONLY |
void | setRaw (const RawComment *RC) |
const Decl * | getOriginalDecl () const LLVM_READONLY |
void | setOriginalDecl (const Decl *Orig) |
Definition at line 541 of file ASTContext.h.
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 543 of file ASTContext.h.
Kind clang::ASTContext::RawCommentAndCacheFlags::getKind | ( | ) | const [inline] |
Definition at line 566 of file ASTContext.h.
Referenced by clang::ASTContext::getRawCommentForAnyRedecl().
const Decl* clang::ASTContext::RawCommentAndCacheFlags::getOriginalDecl | ( | ) | const [inline] |
Definition at line 582 of file ASTContext.h.
Referenced by clang::ASTContext::getRawCommentForAnyRedecl().
const RawComment* clang::ASTContext::RawCommentAndCacheFlags::getRaw | ( | ) | const [inline] |
Definition at line 574 of file ASTContext.h.
Referenced by clang::ASTContext::getRawCommentForAnyRedecl().
void clang::ASTContext::RawCommentAndCacheFlags::setKind | ( | Kind | K | ) | [inline] |
Definition at line 570 of file ASTContext.h.
Referenced by clang::ASTContext::getRawCommentForAnyRedecl().
void clang::ASTContext::RawCommentAndCacheFlags::setOriginalDecl | ( | const Decl * | Orig | ) | [inline] |
Definition at line 586 of file ASTContext.h.
Referenced by clang::ASTContext::getRawCommentForAnyRedecl().
void clang::ASTContext::RawCommentAndCacheFlags::setRaw | ( | const RawComment * | RC | ) | [inline] |
Definition at line 578 of file ASTContext.h.
Referenced by clang::ASTContext::getRawCommentForAnyRedecl().