diff options
Diffstat (limited to 'include/clang/AST/DeclGroup.h')
-rw-r--r-- | include/clang/AST/DeclGroup.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h index cda6ae520a..bd3dbd8fa7 100644 --- a/include/clang/AST/DeclGroup.h +++ b/include/clang/AST/DeclGroup.h @@ -63,7 +63,7 @@ class DeclGroupRef { } public: - DeclGroupRef() : D(0) {} + DeclGroupRef() : D(nullptr) {} explicit DeclGroupRef(Decl* d) : D(d) {} explicit DeclGroupRef(DeclGroup* dg) @@ -80,7 +80,7 @@ public: typedef Decl** iterator; typedef Decl* const * const_iterator; - bool isNull() const { return D == 0; } + bool isNull() const { return D == nullptr; } bool isSingleDecl() const { return getKind() == SingleDeclKind; } bool isDeclGroup() const { return getKind() == DeclGroupKind; } @@ -102,26 +102,26 @@ public: iterator begin() { if (isSingleDecl()) - return D ? &D : 0; + return D ? &D : nullptr; return &getDeclGroup()[0]; } iterator end() { if (isSingleDecl()) - return D ? &D+1 : 0; + return D ? &D+1 : nullptr; DeclGroup &G = getDeclGroup(); return &G[0] + G.size(); } const_iterator begin() const { if (isSingleDecl()) - return D ? &D : 0; + return D ? &D : nullptr; return &getDeclGroup()[0]; } const_iterator end() const { if (isSingleDecl()) - return D ? &D+1 : 0; + return D ? &D+1 : nullptr; const DeclGroup &G = getDeclGroup(); return &G[0] + G.size(); } |