<p dir="ltr">Which compiler do we support that didn't accept this? I thought we'd already grown a few uses of initializer lists like this...</p>
<div class="gmail_quote">On Aug 11, 2015 5:13 AM, "Manuel Klimek via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: klimek<br>
Date: Tue Aug 11 07:13:15 2015<br>
New Revision: 244596<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=244596&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=244596&view=rev</a><br>
Log:<br>
Default initialize from explicitly constructed object.<br>
<br>
Modified:<br>
    clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h<br>
<br>
Modified: clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h?rev=244596&r1=244595&r2=244596&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h?rev=244596&r1=244595&r2=244596&view=diff</a><br>
==============================================================================<br>
--- clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h (original)<br>
+++ clang-tools-extra/trunk/unittests/clang-tidy/ClangTidyTest.h Tue Aug 11 07:13:15 2015<br>
@@ -48,7 +48,8 @@ runCheckOnCode(StringRef Code, std::vect<br>
                const Twine &Filename = "input.cc",<br>
                ArrayRef<std::string> ExtraArgs = None,<br>
                const ClangTidyOptions &ExtraOptions = ClangTidyOptions(),<br>
-               std::map<StringRef, StringRef> PathsToContent = {}) {<br>
+               std::map<StringRef, StringRef> PathsToContent =<br>
+                   std::map<StringRef, StringRef>()) {<br>
   ClangTidyOptions Options = ExtraOptions;<br>
   Options.Checks = "*";<br>
   ClangTidyContext Context(llvm::make_unique<DefaultOptionsProvider>(<br>
@@ -70,7 +71,7 @@ runCheckOnCode(StringRef Code, std::vect<br>
   tooling::ToolInvocation Invocation(<br>
       ArgCXX11, new TestClangTidyAction(Check, Finder, Context), Files.get());<br>
   Invocation.mapVirtualFile(Filename.str(), Code);<br>
-  for (const auto & FileContent : PathsToContent) {<br>
+  for (const auto &FileContent : PathsToContent) {<br>
     Invocation.mapVirtualFile(Twine("include/" + FileContent.first).str(),<br>
                               FileContent.second);<br>
   }<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>