Fix clang-tidy crash when a single fix is applied on multiple files.
authorEric Liu <ioeric@google.com>
Tue, 9 Aug 2016 07:54:49 +0000 (07:54 +0000)
committerEric Liu <ioeric@google.com>
Tue, 9 Aug 2016 07:54:49 +0000 (07:54 +0000)
commit7e5445267f8adc66db66ca09c2804cf8f6ebb960
treec51688e94fae5de5e1e74df4c439c8c0cf85a346
parentcf66ef26f3477860ed1727337089f6f2078ffc5c
Fix clang-tidy crash when a single fix is applied on multiple files.

Summary:
tooling::Replacements only holds replacements for a single file, so
this patch makes Fix a map from file paths to tooling::Replacements so that it
can be applied on multiple files.

Reviewers: hokein, alexfh

Subscribers: Prazek, cfe-commits

Differential Revision: https://reviews.llvm.org/D23257

llvm-svn: 278101
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
clang-tools-extra/test/clang-tidy/Inputs/modernize-pass-by-value/header-with-fix.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/modernize-pass-by-value-multi-fixes.cpp [new file with mode: 0644]
clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h