[PATCH] D72746: [clangd] Add a flag for implicit references in the Index
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 22 02:08:45 PST 2020
kadircet added inline comments.
================
Comment at: clang-tools-extra/clangd/index/Ref.h:34
+ Spelled = 1 << 3,
+ All = Declaration | Definition | Reference | Spelled,
};
----------------
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.
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