This is to improve maintenance a bit and remove need to maintain the additional option and related code-paths.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM in general, with some suggestions in-line. Besides those, I think we should be able to remove PPSkipMappings from the condition in MinimizedVFSFile::create (DependencyScanningFilesystem.cpp).
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp | ||
---|---|---|
206–207 | I think we can remove this check as well now. | |
289–290 | Do we need to keep this on the heap? |
Comment Actions
Change APIs to accept a reference of ExcludedPreprocessorDirectiveSkipMapping instead of a pointer, since it is required now.
Comment Actions
@jansvoboda11 thanks for reviewing! I've changed APIs to use a reference instead of a pointer and removed the unnecessary check and heap allocations.
I think we can remove this check as well now.