projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
335487a
)
Avoid using set::emplace as it is apparently not supported by gcc 4.7.
author
Daniel Jasper
<djasper@google.com>
Tue, 16 Jun 2015 13:15:54 +0000
(13:15 +0000)
committer
Daniel Jasper
<djasper@google.com>
Tue, 16 Jun 2015 13:15:54 +0000
(13:15 +0000)
llvm-svn: 239816
clang/unittests/Tooling/RewriterTest.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/Tooling/RewriterTest.cpp
b/clang/unittests/Tooling/RewriterTest.cpp
index
4928b17
..
93f69eb
100644
(file)
--- a/
clang/unittests/Tooling/RewriterTest.cpp
+++ b/
clang/unittests/Tooling/RewriterTest.cpp
@@
-39,8
+39,8
@@
TEST(Rewriter, ContinuesOverwritingFilesOnError) {
TEST(Rewriter, AdjacentInsertAndDelete) {
Replacements Replaces;
- Replaces.
emplace("<file>", 6, 6, ""
);
- Replaces.
emplace("<file>", 6, 0, "replaced\n"
);
+ Replaces.
insert(Replacement("<file>", 6, 6, "")
);
+ Replaces.
insert(Replacement("<file>", 6, 0, "replaced\n")
);
EXPECT_EQ("line1\nreplaced\nline3\nline4",
applyAllReplacements("line1\nline2\nline3\nline4", Replaces));
}