diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 865bf6fd9ebc..7c22c4d5ac2b 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -519,7 +519,10 @@ public: }; -/// RecordDecl - Represents a struct/union/class. +/// RecordDecl - Represents a struct/union/class. For example: +/// struct X; // Forward declaration, no "body". +/// union Y { int A, B; }; // Has body with members A and B (FieldDecls). +/// class RecordDecl : public TagDecl { /// HasFlexibleArrayMember - This is true if this struct ends with a flexible /// array member (e.g. int X[]) or if this union contains a struct that does.