Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: tools/gn/parse_tree.cc

Issue 798333005: tools/gn: Pass clang-modernize -use-nullptr over it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address Brett's review - revert some clang-format changes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/operators_unittest.cc ('k') | tools/gn/parse_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/parse_tree.cc
diff --git a/tools/gn/parse_tree.cc b/tools/gn/parse_tree.cc
index 1531747c57238613e5c36fb73b6ff5c28d4b6fa0..74f493b601741f7a36e970674118b79635a4ca55 100644
--- a/tools/gn/parse_tree.cc
+++ b/tools/gn/parse_tree.cc
@@ -38,17 +38,17 @@ ParseNode::ParseNode() {
ParseNode::~ParseNode() {
}
-const AccessorNode* ParseNode::AsAccessor() const { return NULL; }
-const BinaryOpNode* ParseNode::AsBinaryOp() const { return NULL; }
-const BlockCommentNode* ParseNode::AsBlockComment() const { return NULL; }
-const BlockNode* ParseNode::AsBlock() const { return NULL; }
-const ConditionNode* ParseNode::AsConditionNode() const { return NULL; }
-const EndNode* ParseNode::AsEnd() const { return NULL; }
-const FunctionCallNode* ParseNode::AsFunctionCall() const { return NULL; }
-const IdentifierNode* ParseNode::AsIdentifier() const { return NULL; }
-const ListNode* ParseNode::AsList() const { return NULL; }
-const LiteralNode* ParseNode::AsLiteral() const { return NULL; }
-const UnaryOpNode* ParseNode::AsUnaryOp() const { return NULL; }
+const AccessorNode* ParseNode::AsAccessor() const { return nullptr; }
+const BinaryOpNode* ParseNode::AsBinaryOp() const { return nullptr; }
+const BlockCommentNode* ParseNode::AsBlockComment() const { return nullptr; }
+const BlockNode* ParseNode::AsBlock() const { return nullptr; }
+const ConditionNode* ParseNode::AsConditionNode() const { return nullptr; }
+const EndNode* ParseNode::AsEnd() const { return nullptr; }
+const FunctionCallNode* ParseNode::AsFunctionCall() const { return nullptr; }
+const IdentifierNode* ParseNode::AsIdentifier() const { return nullptr; }
+const ListNode* ParseNode::AsList() const { return nullptr; }
+const LiteralNode* ParseNode::AsLiteral() const { return nullptr; }
+const UnaryOpNode* ParseNode::AsUnaryOp() const { return nullptr; }
Comments* ParseNode::comments_mutable() {
if (!comments_)
@@ -160,7 +160,7 @@ Value AccessorNode::ExecuteScopeAccess(Scope* scope, Err* err) const {
// not legal to const cast it away since the root scope will be in readonly
// mode and being accessed from multiple threads without locking.) So this
// code handles both cases.
- const Value* result = NULL;
+ const Value* result = nullptr;
// Look up the value in the scope named by "base_".
Value* mutable_base_value = scope->GetMutableValue(base_.value(), true);
« no previous file with comments | « tools/gn/operators_unittest.cc ('k') | tools/gn/parse_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698