diff options
-rw-r--r-- | include/clang/Index/ASTLocation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Index/ASTLocation.h b/include/clang/Index/ASTLocation.h index 4404644e56..ba401da26a 100644 --- a/include/clang/Index/ASTLocation.h +++ b/include/clang/Index/ASTLocation.h @@ -28,6 +28,12 @@ namespace idx { /// \brief Represents a Decl or a Stmt and its immediate Decl parent. It's /// immutable. +/// +/// ASTLocation is intended to be used as a "pointer" into the AST. It is either +/// just a Decl, or a Stmt and its Decl parent. Since a single Stmt is devoid +/// of context, its parent Decl provides all the additional missing information +/// like the declaration context, ASTContext, etc. +/// class ASTLocation { Decl *D; Stmt *Stm; |