projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
588bd7b
)
[NFC] Silence compiler warning [-Wmissing-braces].
author
Huihui Zhang
<huihuiz@quicinc.com>
Wed, 15 Apr 2020 18:43:17 +0000
(11:43 -0700)
committer
Huihui Zhang
<huihuiz@quicinc.com>
Wed, 15 Apr 2020 18:46:05 +0000
(11:46 -0700)
clang/unittests/AST/ASTImporterFixtures.h:70:5: warning: suggest braces around initialization of subobject [-Wmissing-braces]
ArgVector(), ArgVector{"-fdelayed-template-parsing"},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
clang/unittests/AST/ASTImporterFixtures.h
patch
|
blob
|
history
diff --git
a/clang/unittests/AST/ASTImporterFixtures.h
b/clang/unittests/AST/ASTImporterFixtures.h
index
05d789f
..
3d9d64c
100644
(file)
--- a/
clang/unittests/AST/ASTImporterFixtures.h
+++ b/
clang/unittests/AST/ASTImporterFixtures.h
@@
-67,9
+67,9
@@
protected:
};
const auto DefaultTestArrayForRunOptions = std::array<ArgVector, 4>{
- ArgVector(), ArgVector{"-fdelayed-template-parsing"},
- ArgVector{"-fms-compatibility"},
-
ArgVector{"-fdelayed-template-parsing", "-fms-compatibility"
}};
+
{
ArgVector(), ArgVector{"-fdelayed-template-parsing"},
+
ArgVector{"-fms-compatibility"},
+
ArgVector{"-fdelayed-template-parsing", "-fms-compatibility"}
}};
const auto DefaultTestValuesForRunOptions =
::testing::ValuesIn(DefaultTestArrayForRunOptions);