From 40d5684d41ee69353a91aef34a0ff47b91e24c7e Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 24 Oct 2018 12:56:41 +0000 Subject: [PATCH] [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 --- clang-tools-extra/clangd/index/Index.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/index/Index.h b/clang-tools-extra/clangd/index/Index.h index 85759ca..b5d7809 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 -- 2.7.4