llvm/llvm-project
Vedi su GitHub-Wdangling-field detects view members initalized from a by-value owner parameter
Open
#187.675 aperta il 20 mar 2026
clang:temporal-safetygood first issue
Metriche repository
- Star
- (26.378 star)
- Metriche merge PR
- (Merge medio 1g 2h) (1000 PR mergiate in 30 g)
Descrizione
struct Foo {};
struct Bar {
const Foo& foo;
Bar(Foo f ) : foo(f) {} // good, clang warn on this case
};
struct C {
string_view s;
C(std::string c) : s(c) {} // bad, clang doesn't warn on this case. support it
};