Issue 135321
Summary [clang] -Wimplicit-int-conversion shows only one warning at a time
Labels clang:frontend, clang:diagnostics
Assignees
Reporter carlosgalvezp
    Consider this code:

```
#include <cstdint>

struct Foo
{
    template <typename T>
    explicit Foo(T data) : data_(data)
    {}

 std::uint8_t data_;
};

int main()
{
    Foo f1{0};
    Foo f2{1};
 Foo f3{2};
}
```

[Godbolt](https://godbolt.org/z/r133qxPxo)

Here, we expect 3 warnings from `-Wimplicit-int-conversion`. However Clang only prints the first one. Only after we fix it does Clang print only the second one, and so on. This makes for a very slow fixing process, it would be good to get all the warnings from the file at once (like it happens in the general case).

Not sure if this is a general problem with the Clang diagnostics or this specific warning. Is this intentional?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to