[PATCH] D73780: [clangd] Separate protobuf-related functions to a dedicated file.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 31 06:02:21 PST 2020
kadircet added a comment.
LG. I might be missing some context though, what's the reasoning behind? Because, I think it is not necessary to treat protobufs differently.
It might be sensible to have a more generic `isSymbolFromGeneratedFile` filter, but also for this one I don't see any developments in the near future.
================
Comment at: clang-tools-extra/clangd/Protobuf.cpp:24
+
+// To identify whether a proto header is actually generated by proto compiler,
+// we check whether it starts with PROTO_HEADER_COMMENT.
----------------
maybe move this comment down below, right before the line ` if (!SM.getBufferData(FID).startswith(PROTO_HEADER_COMMENT))`
================
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:81
-// we check whether it starts with PROTO_HEADER_COMMENT.
-// FIXME: make filtering extensible when there are more use cases for symbol
-// filters.
----------------
looks like this fixme got dropped
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73780/new/
https://reviews.llvm.org/D73780
More information about the cfe-commits
mailing list