This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Unify compiler invocation creation
ClosedPublic

Authored by kadircet on Jul 23 2021, 8:00 AM.

Details

Summary

Background-indexing is fine, because it uses GlobalCompilationDatabase
to fetch the compile commands (hence uses CommandMangler), and creates
invocation through buildCompilerInvocation.

Depends on D106639.

Diff Detail

Event Timeline

kadircet created this revision.Jul 23 2021, 8:00 AM
kadircet requested review of this revision.Jul 23 2021, 8:00 AM
sammccall accepted this revision.Jul 30 2021, 5:39 AM
sammccall added inline comments.
clang-tools-extra/clangd/Compiler.h
64

Comment is good, but call this disableUnsupportedOptions?
(We're in namespace clangd already)

64

This should also probably have a comment about being paired with CommandMangler, as that provides similar functionality that just happens to be best expressed on the command instead (e.g. stripping --save-temps)

clang-tools-extra/clangd/test/indexer.test
4

Add a comment (or rename test file) saying what functionality this is trying to test? it's not obvious

This revision is now accepted and ready to land.Jul 30 2021, 5:39 AM
kadircet updated this revision to Diff 363055.Jul 30 2021, 6:22 AM
kadircet marked 3 inline comments as done.
  • Address comments
This revision was landed with ongoing or failed builds.Jul 30 2021, 6:23 AM
This revision was automatically updated to reflect the committed changes.