diff options
| author | Edwin Vane <edwin.vane@intel.com> | 2013-06-13 16:00:46 +0000 |
|---|---|---|
| committer | Edwin Vane <edwin.vane@intel.com> | 2013-06-13 16:00:46 +0000 |
| commit | e0a7d9cefffeea97c2d922afdd8a373b329135e3 (patch) | |
| tree | 38c2dbd6eaf429248430775b1aaffe8986cf9ccf /clang-tools-extra/cpp11-migrate/LoopConvert | |
| parent | c0bbe36245df1b4feaee6239f344738bea31d244 (diff) | |
| download | bcm5719-llvm-e0a7d9cefffeea97c2d922afdd8a373b329135e3.tar.gz bcm5719-llvm-e0a7d9cefffeea97c2d922afdd8a373b329135e3.zip | |
cpp11-migrate: Replace file override container
A more flexible container for storing overrides is required for headers. Before
a source goes through the transform pipeline, any headers it references will be
in their original state and unaffected by transforms applied to other sources.
Therefore overrides for headers need to be kept separate for each source file.
This patch doesn't introduce support for storing header overrides yet. It only
replaces the existing structure and makes any necessary changes to support it.
llvm-svn: 183910
Diffstat (limited to 'clang-tools-extra/cpp11-migrate/LoopConvert')
| -rw-r--r-- | clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.cpp | 4 | ||||
| -rw-r--r-- | clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.cpp b/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.cpp index 355dfa362e1..4c6a98b8c6a 100644 --- a/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.cpp +++ b/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.cpp @@ -25,10 +25,10 @@ using clang::ast_matchers::MatchFinder; using namespace clang::tooling; using namespace clang; -int LoopConvertTransform::apply(const FileContentsByPath &InputStates, +int LoopConvertTransform::apply(const FileOverrides &InputStates, const CompilationDatabase &Database, const std::vector<std::string> &SourcePaths, - FileContentsByPath &ResultStates) { + FileOverrides &ResultStates) { RefactoringTool LoopTool(Database, SourcePaths); StmtAncestorASTVisitor ParentFinder; diff --git a/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.h b/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.h index 9dfff55be15..07d2f571e1b 100644 --- a/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.h +++ b/clang-tools-extra/cpp11-migrate/LoopConvert/LoopConvert.h @@ -27,10 +27,10 @@ public: : Transform("LoopConvert", Options) {} /// \see Transform::run(). - virtual int apply(const FileContentsByPath &InputStates, + virtual int apply(const FileOverrides &InputStates, const clang::tooling::CompilationDatabase &Database, const std::vector<std::string> &SourcePaths, - FileContentsByPath &ResultStates) LLVM_OVERRIDE; + FileOverrides &ResultStates) LLVM_OVERRIDE; }; #endif // LLVM_TOOLS_CLANG_TOOLS_EXTRA_CPP11_MIGRATE_LOOP_CONVERT_H |

