hokein added inline comments.
================ Comment at: clangd/XRefs.cpp:43 + if (Line >= SymbolLocation::Position::MaxLine) + log("Get an overflowed line"); + return Line; ---------------- sammccall wrote: > Log message could use more context. And I think it'd be really useful to > print the whole location here. > > bikeshed: you could add a method `bool Position::hasOverflow()`, and then > write below > > ``` > if (LSPLoc.range.start.hasOverflow() || LSPLoc.range.end.hasOverflow()) > log("Possible overflow in symbol location: {0}", LSPLoc); > ``` > > Distinguishing between line/column overflow isn't important if you're > printing the full range anyway. This is neat. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53400 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits