Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
1020 | Since our current plan is to also change type of variables that don't directly participate in unsafe operations but would lead to correct bounds propagation the assumption in this FIXME might not be correct anymore. I originally intended to address the FIXME in this patch but ended up just discarding it. |
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
1020 | Hmm, these are kind of separate. If we're running under -fno-diagnostics-fixit-info, then yeah, we should still identify all variables that need to be fixed and explain them in notes. If we're running below C++20, then in addition to that, we also shouldn't leave notes about "You should change this thing to span!" given that span doesn't exist. |
This is probably good to go either way, we can address the note problem separately. The patch is NFC, purely a performance thing, so no tests are needed.
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
1020 | You are right. Let's address that in a future patch. |
Since our current plan is to also change type of variables that don't directly participate in unsafe operations but would lead to correct bounds propagation the assumption in this FIXME might not be correct anymore.
I originally intended to address the FIXME in this patch but ended up just discarding it.