We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a258d commit dc1b011Copy full SHA for dc1b011
clang/include/clang/AST/Decl.h
@@ -329,7 +329,7 @@ class VarDecl : public ValueDecl {
329
/// hasGlobalStorage - Returns true for all variables that do not
330
/// have local storage. This includs all global variables as well
331
/// as static variables declared within a function.
332
- bool hasGlobalStorage() const { return !hasAutoStorage(); }
+ bool hasGlobalStorage() const { return !hasLocalStorage(); }
333
334
// Implement isa/cast/dyncast/etc.
335
static bool classof(const Decl *D) {
0 commit comments