diff options
author | tfarina <tfarina@chromium.org> | 2014-12-22 16:52:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-23 00:52:46 +0000 |
commit | 9b636af5b67940f73aa43180b265d41ca6545167 (patch) | |
tree | 4dcade4f91619c4f4ed2e82e9f2a77eb9c356e36 /tools/gn/value.cc | |
parent | 0acd2d55393fcbc534b9ed2c61349e5543381658 (diff) | |
download | chromium_src-9b636af5b67940f73aa43180b265d41ca6545167.zip chromium_src-9b636af5b67940f73aa43180b265d41ca6545167.tar.gz chromium_src-9b636af5b67940f73aa43180b265d41ca6545167.tar.bz2 |
tools/gn: convert NULL to nullptr all over it.
nullptr is one of the C++11 allowed features. See https://chromium-cpp.appspot.com/ and https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/4mijeJHzxLg.
This patch was generated with the following command lines:
$ ninja -C out/Debug -t compdb cxx > out/Debug/compile_commands.json
$ cd out/Debug
$ find ../../tools/gn -name '*.cc' | xargs -n 16 -P 32 \
~/src/repos/llvm/build/bin/clang-modernize -use-nullptr -p . -include \
tools/gn -format -style=Chromium
$ ninja gn gn_unittests
BUG=None
TEST=compiles + gn_unittests
R=brettw@chromium.org
Review URL: https://codereview.chromium.org/798333005
Cr-Commit-Position: refs/heads/master@{#309505}
Diffstat (limited to 'tools/gn/value.cc')
-rw-r--r-- | tools/gn/value.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gn/value.cc b/tools/gn/value.cc index f800bf3..6dfe234 100644 --- a/tools/gn/value.cc +++ b/tools/gn/value.cc @@ -12,7 +12,7 @@ Value::Value() : type_(NONE), boolean_value_(false), int_value_(0), - origin_(NULL) { + origin_(nullptr) { } Value::Value(const ParseNode* origin, Type t) |