This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Disable ExtractFunction for C
ClosedPublic

Authored by kadircet on Aug 11 2020, 6:04 AM.

Details

Summary

This tweak uses constructs like auto and refs, which are not available
in C.

Diff Detail

Event Timeline

kadircet created this revision.Aug 11 2020, 6:04 AM
kadircet requested review of this revision.Aug 11 2020, 6:04 AM
hokein accepted this revision.Aug 11 2020, 6:20 AM

This tweak uses constructs like auto and refs, which are not available in C.

I didn't find this tweak is using auto. I think we need to do the same thing for extract variable tweak as well (only for C++11).

This revision is now accepted and ready to land.Aug 11 2020, 6:20 AM
This revision was automatically updated to reflect the committed changes.