diff options
| author | Haojian Wu <hokein@google.com> | 2018-10-24 12:56:41 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2018-10-24 12:56:41 +0000 |
| commit | 40d5684d41ee69353a91aef34a0ff47b91e24c7e (patch) | |
| tree | c3190af4b93bfa0965ddf5fa091c1768ba82de81 | |
| parent | 46106f5ebe1b10d2ebf161959617229bba108d6b (diff) | |
| download | bcm5719-llvm-40d5684d41ee69353a91aef34a0ff47b91e24c7e.tar.gz bcm5719-llvm-40d5684d41ee69353a91aef34a0ff47b91e24c7e.zip | |
[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
| -rw-r--r-- | clang-tools-extra/clangd/index/Index.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/index/Index.h b/clang-tools-extra/clangd/index/Index.h index 85759ca88b8..b5d780961c9 100644 --- a/clang-tools-extra/clangd/index/Index.h +++ b/clang-tools-extra/clangd/index/Index.h @@ -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 |

