[cfe-commits] r47564 - /cfe/trunk/include/clang/AST/Decl.h

Ted Kremenek kremenek at apple.com
Mon Feb 25 13:33:33 PST 2008


Author: kremenek
Date: Mon Feb 25 15:33:32 2008
New Revision: 47564

URL: http://llvm.org/viewvc/llvm-project?rev=47564&view=rev
Log:
doxygenify some comments.

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=47564&r1=47563&r2=47564&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Feb 25 15:33:32 2008
@@ -300,35 +300,35 @@
   Expr *getInit() { return Init; }
   void setInit(Expr *I) { Init = I; }
   
-  // hasAutoStorage - Returns true if either the implicit or explicit
-  //  storage class of a variable is "auto."  In particular, variables
-  //  declared within a function that lack a storage keyword are
-  //  implicitly "auto", but are represented internally with a storage
-  //  class of None.
+  /// hasAutoStorage - Returns true if either the implicit or explicit
+  ///  storage class of a variable is "auto."  In particular, variables
+  ///  declared within a function that lack a storage keyword are
+  ///  implicitly "auto", but are represented internally with a storage
+  ///  class of None.
   bool hasAutoStorage() const {
     return getStorageClass() == Auto ||
           (getStorageClass() == None && getKind() != FileVar);
   }
 
-  // hasStaticStorage - Returns true if either the implicit or
-  //  explicit storage class of a variable is "static."  In
-  //  particular, variables declared within a file (outside of a
-  //  function) that lack a storage keyword are implicitly "static,"
-  //  but are represented internally with a storage class of "None".
+  /// hasStaticStorage - Returns true if either the implicit or
+  ///  explicit storage class of a variable is "static."  In
+  ///  particular, variables declared within a file (outside of a
+  ///  function) that lack a storage keyword are implicitly "static,"
+  ///  but are represented internally with a storage class of "None".
   bool hasStaticStorage() const {
     if (getStorageClass() == Static) return true;
     return getKind() == FileVar;
   }
       
-  // hasLocalStorage - Returns true if a variable with function scope
-  //  is a non-static local variable.
+  /// hasLocalStorage - Returns true if a variable with function scope
+  ///  is a non-static local variable.
   bool hasLocalStorage() const {
     return hasAutoStorage() || getStorageClass() == Register;
   }
 
-  // hasGlobalStorage - Returns true for all variables that do not
-  //  have local storage.  This includs all global variables as well
-  //  as static variables declared within a function.
+  /// hasGlobalStorage - Returns true for all variables that do not
+  ///  have local storage.  This includs all global variables as well
+  ///  as static variables declared within a function.
   bool hasGlobalStorage() const { return !hasAutoStorage(); }
   
   // Implement isa/cast/dyncast/etc.





More information about the cfe-commits mailing list