[clang-tools-extra] r343916 - Fix -Wmissing-braces warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 6 04:46:27 PDT 2018
Author: rksimon
Date: Sat Oct 6 04:46:27 2018
New Revision: 343916
URL: http://llvm.org/viewvc/llvm-project?rev=343916&view=rev
Log:
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=343916&r1=343915&r2=343916&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:46:27 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