================
@@ -10,6 +10,12 @@ template <typename T>
void type_dependent_variables() {
T value = 42;
auto &ref = value;
+ // CHECK-MESSAGES:[[@LINE-1]]:3: warning: variable 'ref' of type 'int &' can
be declared 'const'
+ // CHECK-FIXES: auto const&ref = value;
+ //
+ // FIXME: This is a false positive, the reference points to a template type
----------------
localspook wrote:
It was intended for the previous line, so "false positive" is correct, but I
can see how that comment was confusing. I've moved some lines around so that it
should be clearer now.
https://github.com/llvm/llvm-project/pull/157319
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits