Homec4science

Apply clang-tidy modernize-use-nullptr to googletest.

Authored by Abseil Team <absl-team@google.com> on Oct 5 2018, 00:28.

Description

Apply clang-tidy modernize-use-nullptr to googletest.

Now that googletest has moved to C++11, it should no longer
use NULL or 0 for the null pointer. This patch converts all
such usages to nullptr using clang-tidy.

This prevents LLVM from issuing -Wzero-as-null-pointer-constant
warnings.

PiperOrigin-RevId: 215814400

Details

Committed
Gennadiy Civil <misterg@google.com>Oct 5 2018, 18:54
Pushed
trottetDec 4 2019, 13:52
Parents
R9484:f13bbe2992d1: Remove checking for C++ 11 and a pre-C++11 test from googletest tests
Branches
Unknown
Tags
Unknown

Event Timeline

Gennadiy Civil <misterg@google.com> committed R9484:4bb49ed640e3: Apply clang-tidy modernize-use-nullptr to googletest. (authored by Abseil Team <absl-team@google.com>).Oct 5 2018, 18:54