You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`BoundsSafetyCheckAssignmentToCountAttrPtrWithIncompletePointeeTy`
Previously the interface took a std::function<std::string>. The
rationale behind this was to prevent callers from always allocating and
computing a `std::string`.
While trying to upstream this code (rdar://133600117)
(llvm#106321) it was pointed out
that there might be a simpler way to implement this.
This patch instead has callers pass
* a `ValueDecl*` pointer. In the cases where this isn't known (currently
return values and unnamed parameters) this can be set to nullptr
* a boolean flag stating whether or not the `ValueDecl*` should be fully
qualified when printed.
This avoids needing to pass a `std::function` and also avoids `std::string`
unnecessary allocation.
rdar://142544708
0 commit comments