[cfe-commits] r62975 - /cfe/trunk/include/clang/AST/ASTContext.h

Chris Lattner sabre at nondot.org
Sun Jan 25 15:06:38 PST 2009


Author: lattner
Date: Sun Jan 25 17:06:38 2009
New Revision: 62975

URL: http://llvm.org/viewvc/llvm-project?rev=62975&view=rev
Log:
improve ASTContext::getDeclAlign comment, as suggested by Eli.

Modified:
    cfe/trunk/include/clang/AST/ASTContext.h

Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=62975&r1=62974&r2=62975&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Sun Jan 25 17:06:38 2009
@@ -403,9 +403,9 @@
     return getTypeInfo(T).second;
   }
   
-  /// getDeclAlign - Return a conservative estimate of the alignment of the
-  /// specified decl.  Note that bitfields do not have a valid alignment, so
-  /// this method will assert on them.
+  /// getDeclAlign - Return the alignment of the specified decl that should be
+  /// returned by __alignof().  Note that bitfields do not have a valid
+  /// alignment, so this method will assert on them.
   unsigned getDeclAlign(const Decl *D);
   
   /// getASTRecordLayout - Get or compute information about the layout of the





More information about the cfe-commits mailing list