- If a replacement has offset UINT_MAX, length 0, and a replacement text that is an #include directive, this will insert the #include into the correct block in the \p Code.
- If a replacement has offset UINT_MAX, length 1, and a replacement text that is the name of the header to be removed, the header will be removed from \p Code if it exists.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good.
lib/Format/Format.cpp | ||
---|---|---|
1557 ↗ | (On Diff #72175) | return HeaderToDelete.find(HeaderName) != HeadersToDelete.end() || HeaderToDelete.find(HeaderName.trim("\"<>")) != HeadersToDelete.end() |
1623 ↗ | (On Diff #72175) | quotes. |
1634 ↗ | (On Diff #72175) | Maybe: unsigned Length = std::min(Line.size(), Code.size() - Offset - 1); |