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/unittests/cpp11-migrate/TransformTest.cpp | |
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/unittests/cpp11-migrate/TransformTest.cpp')
-rw-r--r-- | clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp b/clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp index cdb665a84c8..2a5689898a4 100644 --- a/clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp +++ b/clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp @@ -13,10 +13,10 @@ public: DummyTransform(llvm::StringRef Name, const TransformOptions &Options) : Transform(Name, Options) {} - virtual int apply(const FileContentsByPath &, + virtual int apply(const FileOverrides &, const tooling::CompilationDatabase &, const std::vector<std::string> &, - FileContentsByPath &) { return 0; } + FileOverrides &) { return 0; } void setAcceptedChanges(unsigned Changes) { Transform::setAcceptedChanges(Changes); |