summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-04-01 16:30:35 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-04-01 16:30:35 +0000
commit2b9036d54df32412cef00551dc6dd83384050289 (patch)
tree299f8247a05d31268398886e8a221a99c59e5a5c /clang/unittests/Format/FormatTest.cpp
parent0e84adc6213173e9a7794eb45af67fe7bbe4c157 (diff)
downloadbcm5719-llvm-2b9036d54df32412cef00551dc6dd83384050289.tar.gz
bcm5719-llvm-2b9036d54df32412cef00551dc6dd83384050289.zip
Fixing the MSVC 2012 build bot, which cannot do initializer lists yet. Amends r205307.
llvm-svn: 205325
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 8c066e04288..62ca9ffcc39 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -7618,9 +7618,12 @@ TEST_F(FormatTest, ParsesConfiguration) {
FormatStyle::NI_All);
Style.ForEachMacros.clear();
- std::vector<std::string> BoostForeach = { "BOOST_FOREACH" };
+ std::vector<std::string> BoostForeach;
+ BoostForeach.push_back("BOOST_FOREACH");
CHECK_PARSE("ForEachMacros: [BOOST_FOREACH]", ForEachMacros, BoostForeach);
- std::vector<std::string> BoostAndQForeach = { "BOOST_FOREACH", "Q_FOREACH" };
+ std::vector<std::string> BoostAndQForeach;
+ BoostAndQForeach.push_back("BOOST_FOREACH");
+ BoostAndQForeach.push_back("Q_FOREACH");
CHECK_PARSE("ForEachMacros: [BOOST_FOREACH, Q_FOREACH]", ForEachMacros,
BoostAndQForeach);
}
OpenPOWER on IntegriCloud