This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Disable ExtractVariable for C
ClosedPublic

Authored by kadircet on Feb 24 2020, 7:42 AM.

Details

Summary

Currently extract variable doesn't spell the type explicitly and just
uses an auto instead, which is not available in C.

Diff Detail

Event Timeline

kadircet created this revision.Feb 24 2020, 7:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2020, 7:42 AM
sammccall accepted this revision.Feb 25 2020, 1:47 AM
sammccall added inline comments.
clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
453

I think "non-C++" would be clearer, and don't mention obj-c at all.
Formally C++ is independent of whether obj-c is enabled, and that's relevant here.

This revision is now accepted and ready to land.Feb 25 2020, 1:47 AM
kadircet updated this revision to Diff 246406.Feb 25 2020, 3:10 AM
kadircet marked an inline comment as done.
  • Update comment
This revision was automatically updated to reflect the committed changes.