commit 6c1a85b7126f8d2427ed7db62ad3df3fc486eeee
parent bc937be3e4b03d28b798971897a49a547ebd503b
Author: Kyle Milz <kyle@0x30.net>
Date: Sun, 15 Jan 2017 12:43:17 -0700
inst: put extra braces around static initializer list
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/inst_fe.cc b/inst_fe.cc
@@ -129,7 +129,7 @@ InstFrontend::clean_PATH()
void
InstFrontend::save_if_srcfile(char *arg)
{
- std::array<std::string, 4> exts = { ".c", ".cc", ".cxx", ".cpp" };
+ std::array<std::string, 4> exts = {{ ".c", ".cc", ".cxx", ".cpp" }};
if (std::find_if(exts.begin(), exts.end(), ends_with(arg)) == exts.end())
return;
diff --git a/inst_visitor.h b/inst_visitor.h
@@ -33,7 +33,7 @@ public:
m_SM(R.getSourceMgr()),
m_lopt(R.getLangOpts()),
m_counters(),
- m_counter_descr({
+ m_counter_descr( {{
"Function definitions",
"If statements",
"For loops",
@@ -45,7 +45,7 @@ public:
"Total statements",
"Binary operators",
"Errors rewriting source code"
- })
+ }} )
{}
virtual bool TraverseStmt(clang::Stmt *);