r205325 - Fixing the MSVC 2012 build bot, which cannot do initializer lists yet. Amends r205307.
Aaron Ballman
aaron at aaronballman.com
Tue Apr 1 09:30:35 PDT 2014
Author: aaronballman
Date: Tue Apr 1 11:30:35 2014
New Revision: 205325
URL: http://llvm.org/viewvc/llvm-project?rev=205325&view=rev
Log:
Fixing the MSVC 2012 build bot, which cannot do initializer lists yet. Amends r205307.
Modified:
cfe/trunk/unittests/Format/FormatTest.cpp
Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=205325&r1=205324&r2=205325&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Tue Apr 1 11:30:35 2014
@@ -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);
}
More information about the cfe-commits
mailing list