[PATCH] D41280: [clangd] Don't use the optional "severity" when comparing Diagnostic.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 15 04:32:24 PST 2017


ilya-biryukov added a comment.

Maybe we could use a struct containing only `range` and  `message` (e.g. `pair<range, string>`) as a key to search for fixits instead of `Diagnostic`?
Having an `operator <` that does not take all fields into account seems shaky.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D41280





More information about the cfe-commits mailing list