[PATCH] D20857: [clang-tidy] Add modernize-explicit-operator-bool check.
Etienne Bergeron via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 2 07:22:39 PDT 2016
etienneb added inline comments.
================
Comment at: test/clang-tidy/modernize-operator-void-pointer.cpp:39
@@ +38,3 @@
+class SomethingGoodNonConstVoidPtr {
+ // A non-const void* is unlikely to to be meant as operator bool before C++11
+ // let us use explicit.
----------------
You know you can add test for C++11 specifically.
```
readability-redundant-string-cstr.cpp:// RUN: %check_clang_tidy %s readability-redundant-string-cstr %t -- -- -std=c++11
```
http://reviews.llvm.org/D20857
More information about the cfe-commits
mailing list