[PATCH] D72746: [clangd] Add a flag for implicit references in the Index

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 22 03:04:32 PST 2020


hokein added inline comments.


================
Comment at: clang-tools-extra/clangd/index/Ref.h:34
+  Spelled = 1 << 3,
+  All = Declaration | Definition | Reference | Spelled,
 };
----------------
kadircet wrote:
> hokein wrote:
> > The `All` now indicates all spelled refs. I think `All` should include both non-spelled and spell refs, which should be `declaration | Definition | Reference`.
> I don't follow the argument here ,`All` is rather a bitmask that should be `OR`d with a `RefKindSet`.
> It is not like we were saying only the references that are both declarations and  definitions were acceptable before, we were saying All implies either a declaration, definition or a reference in here. So the logic seems to be correct.
ah, you are right, I misthought about that, thanks for the clarification.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72746/new/

https://reviews.llvm.org/D72746





More information about the cfe-commits mailing list