diff options
| author | Kostya Serebryany <kcc@google.com> | 2015-09-29 18:23:36 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2015-09-29 18:23:36 +0000 |
| commit | 0c3a5767d940a37b82ff33184f1999340c5a9f58 (patch) | |
| tree | 01566e43d329343f4fe55b27b307309d10202b24 /compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h | |
| parent | a0deee530b38aec0df1e33617a23ad9397ff9ce5 (diff) | |
| download | bcm5719-llvm-0c3a5767d940a37b82ff33184f1999340c5a9f58.tar.gz bcm5719-llvm-0c3a5767d940a37b82ff33184f1999340c5a9f58.zip | |
[sanitizer] Fix Clang-tidy modernize-use-nullptr warnings in lib/sanitizer_common headers, unify closing inclusion guards. Patch by Eugene Zelenko
llvm-svn: 248816
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h b/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h index 8cf26e0d552..b6e91a16e25 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector_interface.h @@ -72,10 +72,10 @@ struct DDCallback { struct DDetector { static DDetector *Create(const DDFlags *flags); - virtual DDPhysicalThread* CreatePhysicalThread() { return 0; } + virtual DDPhysicalThread* CreatePhysicalThread() { return nullptr; } virtual void DestroyPhysicalThread(DDPhysicalThread *pt) {} - virtual DDLogicalThread* CreateLogicalThread(u64 ctx) { return 0; } + virtual DDLogicalThread* CreateLogicalThread(u64 ctx) { return nullptr; } virtual void DestroyLogicalThread(DDLogicalThread *lt) {} virtual void MutexInit(DDCallback *cb, DDMutex *m) {} @@ -85,7 +85,7 @@ struct DDetector { virtual void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) {} virtual void MutexDestroy(DDCallback *cb, DDMutex *m) {} - virtual DDReport *GetReport(DDCallback *cb) { return 0; } + virtual DDReport *GetReport(DDCallback *cb) { return nullptr; } }; } // namespace __sanitizer |

