[cfe-commits] r42478 - /cfe/trunk/include/clang/AST/Decl.h
Chris Lattner
sabre at nondot.org
Sun Sep 30 01:13:24 PDT 2007
Author: lattner
Date: Sun Sep 30 03:13:22 2007
New Revision: 42478
URL: http://llvm.org/viewvc/llvm-project?rev=42478&view=rev
Log:
improve comment.
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=42478&r1=42477&r2=42478&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Sun Sep 30 03:13:22 2007
@@ -519,7 +519,10 @@
};
-/// 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.
More information about the cfe-commits
mailing list