Refactor ICG

Hey buddy. I wanted to tell you this before you heard it from someone
else...

I refactored ICG.

Now, it's gonna look a little scary at first. But I promise you'll like
it when you get used to it. It'll be fine. You can trust me. #341
This commit is contained in:
Derek Bankieris
2016-10-28 14:37:12 -05:00
parent ba75f6ff37
commit ef1405c3be
22 changed files with 365 additions and 1009 deletions

View File

@ -22,7 +22,6 @@
#include "CommentSaver.hh"
#include "TranslationUnitVisitor.hh"
#include "PrintAttributes.hh"
#include "PrintAttributesFactory.hh"
#include "Utilities.hh"
/* Command line arguments. These work better as globals, as suggested in llvm/CommandLine documentation */
@ -65,9 +64,9 @@ int main(int argc, char * argv[]) {
*/
llvm::cl::ParseCommandLineOptions(argc, argv);
if (!validAttributesVersion(attr_version)) {
/*if (!validAttributesVersion(attr_version)) {
return -1;
}
}*/
if (input_file_names.empty()) {
std::cerr << "No header file specified" << std::endl;