================
@@ -151,6 +164,11 @@ std::vector<Diag> generateMissingIncludeDiagnostics(
if (!Replacement.has_value())
continue;
+ if (Angled && Spelling.front() == '\"') {
----------------
kadircet wrote:
yikes, we also need to do this transformation in the other way as well :/
Might be easier to:
```cpp
if (Angled != (Spelling.front() == '<')) {
Spelling.front() = Angled ? '<' : '"';
Spelling.back() = Angled ? '>' : '"';
}
```
(I guess we're also lacking some tests for the quoted direction)
https://github.com/llvm/llvm-project/pull/140594
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits