cpp11-migrate: Reduce the number of parsing passes.
authorStefanus Du Toit <stefanus.dutoit@rapidmind.com>
Fri, 1 Mar 2013 20:53:43 +0000 (20:53 +0000)
committerStefanus Du Toit <stefanus.dutoit@rapidmind.com>
Fri, 1 Mar 2013 20:53:43 +0000 (20:53 +0000)
commite9779bbef0bb470442dc409f5cca396767a01b02
tree65c127bc3ee13974b864de9b639ad525a7adebf4
parent0943792a65a66e789a6c595930bb50e8320613d6
cpp11-migrate: Reduce the number of parsing passes.

Previously we would check the syntax of the file before we transform
it, but that's redundant since it'll be checked as part of the
transformation. Remove that check completely.

We also had an unconditional syntax check after transforming. This
is only really useful to debug cpp11-migrate, since users will end
up compiling the transformed source anyways, and the transformations
*should* never introduce a failure. Made this an option, accessible
via "-final-syntax-check".

Resolves PR 15380.

llvm-svn: 176376
clang-tools-extra/cpp11-migrate/Cpp11Migrate.cpp