Details
- Reviewers
kadircet - Commits
- rGf8865c01944f: [clangd] Pull out a isProtoFile function.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
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.
clang-tools-extra/clangd/Protobuf.cpp | ||
---|---|---|
25 | maybe move this comment down below, right before the line if (!SM.getBufferData(FID).startswith(PROTO_HEADER_COMMENT)) | |
clang-tools-extra/clangd/index/SymbolCollector.cpp | ||
81 | looks like this fixme got dropped |
Unit tests: fail. 62288 tests passed, 8 failed and 837 were skipped.
failed: LLVM.CodeGen/AMDGPU/branch-relaxation.ll failed: LLVM.CodeGen/AMDGPU/cf-loop-on-constant.ll failed: LLVM.CodeGen/AMDGPU/infinite-loop.ll failed: LLVM.CodeGen/AMDGPU/optimize-negated-cond.ll failed: LLVM.CodeGen/AMDGPU/uniform-cfg.ll failed: LLVM.CodeGen/AMDGPU/update-phi.ll failed: LLVM.CodeGen/AMDGPU/vgpr-descriptor-waterfall-loop-idom-update.ll failed: LLVM.Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll
clang-tidy: fail. clang-tidy found 0 errors and 3 warnings. 3 of them are added as review comments below (why?).
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
the motivation of this change is that we will blacklist the proto symbols for rename, we need a place to put protobuf-related functions (and we might improve clangd on better supporting protobuf symbol navigation this year) , I think it is sensible to lift them into a separate file.
clang-tools-extra/clangd/index/SymbolCollector.cpp | ||
---|---|---|
81 | oops.. |
Unit tests: fail. 62288 tests passed, 8 failed and 837 were skipped.
failed: LLVM.CodeGen/AMDGPU/branch-relaxation.ll failed: LLVM.CodeGen/AMDGPU/cf-loop-on-constant.ll failed: LLVM.CodeGen/AMDGPU/infinite-loop.ll failed: LLVM.CodeGen/AMDGPU/optimize-negated-cond.ll failed: LLVM.CodeGen/AMDGPU/uniform-cfg.ll failed: LLVM.CodeGen/AMDGPU/update-phi.ll failed: LLVM.CodeGen/AMDGPU/vgpr-descriptor-waterfall-loop-idom-update.ll failed: LLVM.Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll
clang-tidy: fail. clang-tidy found 0 errors and 2 warnings. 2 of them are added as review comments below (why?).
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
Unit tests: fail. 62288 tests passed, 8 failed and 837 were skipped.
failed: LLVM.CodeGen/AMDGPU/branch-relaxation.ll failed: LLVM.CodeGen/AMDGPU/cf-loop-on-constant.ll failed: LLVM.CodeGen/AMDGPU/infinite-loop.ll failed: LLVM.CodeGen/AMDGPU/optimize-negated-cond.ll failed: LLVM.CodeGen/AMDGPU/uniform-cfg.ll failed: LLVM.CodeGen/AMDGPU/update-phi.ll failed: LLVM.CodeGen/AMDGPU/vgpr-descriptor-waterfall-loop-idom-update.ll failed: LLVM.Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-crash.ll
clang-tidy: fail. clang-tidy found 0 errors and 2 warnings. 2 of them are added as review comments below (why?).
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
if that's the case, I would still go with having a more generic isGeneratedSymbol, that only supports filtering protobuf-related symbols for now. and would rather put it into AST.h
Unit tests: unknown.
clang-tidy: unknown.
clang-format: unknown.
Build artifacts: console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
LGTM, thanks!
clang-tools-extra/clangd/SourceCode.cpp | ||
---|---|---|
1139 ↗ | (On Diff #242536) | nit: just return SM.getBufferData(FID).startswith(PROTO_HEADER_COMMENT); |
Unit tests: unknown.
clang-tidy: unknown.
clang-format: unknown.
Build artifacts: console-log.txt
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
clang-tidy: warning: header guard does not follow preferred style [llvm-header-guard]
not useful