[clang-tools-extra] r343917 - Revert rL343916: Fix -Wmissing-braces warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 6 04:59:31 PDT 2018


Author: rksimon
Date: Sat Oct  6 04:59:31 2018
New Revision: 343917

URL: http://llvm.org/viewvc/llvm-project?rev=343917&view=rev
Log:
Revert rL343916: Fix -Wmissing-braces warning. NFCI.

Modified:
    clang-tools-extra/trunk/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp

Modified: clang-tools-extra/trunk/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp?rev=343917&r1=343916&r2=343917&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/modernize/DeprecatedIosBaseAliasesCheck.cpp Sat Oct  6 04:59:31 2018
@@ -18,9 +18,9 @@ namespace tidy {
 namespace modernize {
 
 static const std::array<StringRef, 5> DeprecatedTypes = {
-    {"::std::ios_base::io_state"},  {"::std::ios_base::open_mode"},
-    {"::std::ios_base::seek_dir"},  {"::std::ios_base::streamoff"},
-    {"::std::ios_base::streampos"},
+    "::std::ios_base::io_state",  "::std::ios_base::open_mode",
+    "::std::ios_base::seek_dir",  "::std::ios_base::streamoff",
+    "::std::ios_base::streampos",
 };
 
 static const llvm::StringMap<StringRef> ReplacementTypes = {




More information about the cfe-commits mailing list