This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Fix Clang-tidy modernize-use-nullptr warnings in lib/tsan; other minor fixes.
AbandonedPublic

Authored by Eugene.Zelenko on Oct 2 2015, 10:49 AM.

Details

Summary

I checked this patch on my own build on RHEL 6.

Please check it in if it's OK, because I don't have SVN write access.

Diff Detail

Event Timeline

Eugene.Zelenko retitled this revision from to [compiler-rt] Fix Clang-tidy modernize-use-nullptr warnings in lib/tsan; other minor fixes..
Eugene.Zelenko updated this object.
Eugene.Zelenko added reviewers: kcc, vsk.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Eugene.Zelenko added a subscriber: llvm-commits.

Ping. Please review patch.

dvyukov requested changes to this revision.Nov 17 2015, 6:40 AM
dvyukov added a reviewer: dvyukov.
dvyukov added a subscriber: dvyukov.

nullptr's are ok
I don't understand the motivation behind the rest of changes.

lib/tsan/dd/dd_interceptors.cc
32

This was done on a purpose. Now it looks like thr is a bool. It is not.

333

The style guide required exactly 2 spaces here. Have it changed?

lib/tsan/rtl/tsan_interceptors.cc
210

Why additional brackets??

This revision now requires changes to proceed.Nov 17 2015, 6:40 AM
Eugene.Zelenko abandoned this revision.Nov 20 2015, 5:17 PM