diff options
author | Edwin Vane <edwin.vane@intel.com> | 2013-07-08 12:17:37 +0000 |
---|---|---|
committer | Edwin Vane <edwin.vane@intel.com> | 2013-07-08 12:17:37 +0000 |
commit | aae33677f503c1215b97059c07f3a31d00cce4a2 (patch) | |
tree | 2163610b221476c464458eae5d1c20e2f2237ee9 /clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp | |
parent | 0b900831688d358421a63fd8f6d24602a0a61a5e (diff) | |
download | bcm5719-llvm-aae33677f503c1215b97059c07f3a31d00cce4a2.tar.gz bcm5719-llvm-aae33677f503c1215b97059c07f3a31d00cce4a2.zip |
cpp11-migrate: Tidying up
* Some file headers were missing for files in Core/
* Some headers were included but not necessary
* CMakeLists.txt was linking in LLVMSupport even though CMakeLists in subdirs
were linking it in too.
* StringRefisation of constructors of types in FileOverrides.h
* Other misc cleanups
Author: Guillaume Papin <guillaume.papin@epitech.eu>
llvm-svn: 185811
Diffstat (limited to 'clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp')
-rw-r--r-- | clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp b/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp index 46351fd6237..2ebd92d2ff6 100644 --- a/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp +++ b/clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp @@ -158,25 +158,24 @@ int main(int argc, const char **argv) { for (Transforms::const_iterator I = TransformManager.begin(), E = TransformManager.end(); I != E; ++I) { - if ((*I)->apply(FileStates, OptionsParser.getCompilations(), - OptionsParser.getSourcePathList()) != + Transform *T = *I; + + if (T->apply(FileStates, OptionsParser.getCompilations(), + OptionsParser.getSourcePathList()) != 0) { // FIXME: Improve ClangTool to not abort if just one file fails. return 1; } if (GlobalOptions.EnableTiming) - collectSourcePerfData(**I, PerfData); + collectSourcePerfData(*T, PerfData); if (SummaryMode) { - llvm::outs() << "Transform: " << (*I)->getName() - << " - Accepted: " - << (*I)->getAcceptedChanges(); - if ((*I)->getChangesNotMade()) { - llvm::outs() << " - Rejected: " - << (*I)->getRejectedChanges() - << " - Deferred: " - << (*I)->getDeferredChanges(); + llvm::outs() << "Transform: " << T->getName() + << " - Accepted: " << T->getAcceptedChanges(); + if (T->getChangesNotMade()) { + llvm::outs() << " - Rejected: " << T->getRejectedChanges() + << " - Deferred: " << T->getDeferredChanges(); } llvm::outs() << "\n"; } |