-readability-identifier-length, -readability-implicit-bool-conversion, -readability-magic-numbers, -readability-math-missing-parentheses, -readability-misleading-indentation, -readability-qualified-auto, -readability-suspicious-call-argument, 0 comments on commit 4078b0d Please sign in to comment. Footer...
member function calls too.-- Improved :doc:`readablility-implicit-bool-conversion+- Improved :doc:`readability-container-contains+<clang-tidy/checks/readability/container-contains>` check+to let it work on any class that has a `contains` method.++- Improved :doc:`readability-implicit-bool-conver...
true : false;` has an implicit +/// conversion of `i & 1` to `bool` and becomes --- alexfh wrote: > Did you intentionally skip a number for this paragraph? Sam below after 3. This should have been associated with the paragraph giving examples of implicit conversion to `bool`. Fixe...
+/// 4. Implicit conversions of pointer to `bool` are replaced with explicit +/// comparisons to `nullptr`. +/// 5. Implicit casts to `bool` are replaced with explicit casts to `bool`. +/// 6. Object expressions with `explicit operator bool` conversion operators +/// are replaced ...
Checks: '-*,readability-delete-null-pointer,readability-implicit-bool-conversion' CheckOptions: - key: readability-implicit-bool-conversion.AllowPointerConditions value: '1' 3 changes: 1 addition & 2 deletions 3 cl_dll/vgui_CustomObjects.cpp Original file line numberDiff line numberDiff line chan...
+ return ("static_cast<bool>(" + text + ")").str(); + } + + return text; +} + +bool needsStaticCast(const Expr *E) { + if (const auto *ImpCast = dyn_cast<ImplicitCastExpr>(E)) { + if (ImpCast->getCastKind() == CK_UserDefinedConversion && ...