[all-commits] [llvm/llvm-project] eb3b06: [clang-tidy] Improve `google-explicit-constructor`...
AMS21 via All-commits
all-commits at lists.llvm.org
Sun Mar 3 03:13:36 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb3b063995d6b4f8f3bc22eeecbf239ffaecc29f
https://github.com/llvm/llvm-project/commit/eb3b063995d6b4f8f3bc22eeecbf239ffaecc29f
Author: AMS21 <AMS21.github at gmail.com>
Date: 2024-03-03 (Sun, 03 Mar 2024)
Changed paths:
M clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/test/clang-tidy/checkers/google/explicit-constructor-cxx20.cpp
Log Message:
-----------
[clang-tidy] Improve `google-explicit-constructor` checks handling of `explicit(bool)` (#82689)
We now treat `explicit(false)` the same way we treat `noexcept(false)`
in the noexcept checks, which is ignoring it.
Also introduced a new warning message if a constructor has an `explicit`
declaration which evaluates to false and no longer emit a faulty FixIt.
Fixes #81121
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list