This is an archive of the discontinued LLVM Phabricator instance.

Revert "Revert "[clangd] Canonicalize compile flags before applying edits""
ClosedPublic

Authored by kadircet on Jul 26 2021, 7:56 AM.

Details

Summary

Set driver mode before parsing arglist.

Depends on D106789.

Diff Detail

Event Timeline

kadircet created this revision.Jul 26 2021, 7:56 AM
kadircet requested review of this revision.Jul 26 2021, 7:56 AM
sammccall accepted this revision.Jul 27 2021, 5:23 AM
sammccall added inline comments.
clang-tools-extra/clangd/CompileCommands.cpp
209

makeArrayRef(OriginalArgs).slice(1)?

214

include should be IsCLMode ? (CLOption | CoreOption) : /*everything*/0?

215

exclude NoDriverOption | ( IsCLMode ? 0 : CLOption)

This revision is now accepted and ready to land.Jul 27 2021, 5:23 AM
This revision was automatically updated to reflect the committed changes.
kadircet marked 3 inline comments as done.