[clang-tools-extra] [clang-tidy] Fix false positives with template in `misc-unconventional-assign-operator` check (PR #143292)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 6 03:06:37 PDT 2025
================
@@ -163,3 +163,16 @@ struct TemplateTypeAlias {
Alias3<TypeAlias::Alias> &operator=(double) { return *this; }
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: operator=() should return 'TemplateTypeAlias&' [misc-unconventional-assign-operator]
};
+
+namespace issue143237 {
+template<typename T>
+struct B {
----------------
flovent wrote:
Adjusted in new commit.
https://github.com/llvm/llvm-project/pull/143292
More information about the cfe-commits
mailing list