This is an archive of the discontinued LLVM Phabricator instance.

[Clang][Driver] Clean up Clang::ConstructJob a little bit, NFC
Needs ReviewPublic

Authored by etherzhhb on Dec 22 2016, 2:07 AM.

Details

Reviewers
hfinkel
Summary

Currently Clang::ConstructJob has more than 2000 lines of code and it is a little bit hard to follow ...

This change tries to cleanup Clang::ConstructJob by introducing 'AddAnalyzeArgs' and move the related code there

Diff Detail

Repository
rL LLVM

Event Timeline

etherzhhb updated this revision to Diff 82319.Dec 22 2016, 2:07 AM
etherzhhb retitled this revision from to [Clang][Driver] Clean up Clang::ConstructJob a little bit, NFC.
etherzhhb updated this object.
etherzhhb added a reviewer: hfinkel.
etherzhhb set the repository for this revision to rL LLVM.

I think this patch is an improvement, but Clang::ConstructJob is still one giant function.

Do you have ideas to improve readability of this function or plans to further reduce its size?

I think this patch is an improvement, but Clang::ConstructJob is still one giant function.

Do you have ideas to improve readability of this function or plans to further reduce its size?

I am trying to identify the self-contained chunks and extra them