[clangd] Hide position line and column fields.

Reviewers: sammccall

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D53577

llvm-svn: 345134
This commit is contained in:
Haojian Wu 2018-10-24 12:56:41 +00:00
parent 46106f5ebe
commit 40d5684d41
1 changed files with 1 additions and 2 deletions

View File

@ -50,8 +50,7 @@ struct SymbolLocation {
static constexpr uint32_t MaxLine = (1 << 20) - 1;
static constexpr uint32_t MaxColumn = (1 << 12) - 1;
// Clients should use getters and setters to access these members.
// FIXME: hide these members.
private:
uint32_t Line : 20; // 0-based
// Using UTF-16 code units.
uint32_t Column : 12; // 0-based