aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-25 21:33:32 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-25 21:33:32 +0000
commit2de4a9b1d6186f83d98975e02daeb71bd9605440 (patch)
tree3a20bbcc33ca15a747fb5d744fa990d3c6cbedb5
parent994a09bdd94aa683373835bd6c152d91bd54603d (diff)
doxygenify some comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47564 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Decl.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h
index e2cb0eb751..965394b522 100644
--- a/include/clang/AST/Decl.h
+++ b/include/clang/AST/Decl.h
@@ -300,35 +300,35 @@ public:
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.