[clangd] Hide position line and column fields.
authorHaojian Wu <hokein@google.com>
Wed, 24 Oct 2018 12:56:41 +0000 (12:56 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 24 Oct 2018 12:56:41 +0000 (12:56 +0000)
Reviewers: sammccall

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

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

llvm-svn: 345134

clang-tools-extra/clangd/index/Index.h

index 85759ca..b5d7809 100644 (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