Skip to content

Commit de641e2

Browse files
committed
[clang-format] Fix buildbot failures
Fix the following buildbot failures by making LangOpts in the unit test static: https://lab.llvm.org/buildbot/#/builders/236/builds/11223 https://lab.llvm.org/buildbot/#/builders/239/builds/6968
1 parent ed16e7a commit de641e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/unittests/Format/QualifierFixerTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ TEST_F(QualifierFixerTest, IsQualifierType) {
10551055
ConfiguredTokens.push_back(tok::kw_constexpr);
10561056
ConfiguredTokens.push_back(tok::kw_friend);
10571057

1058-
LangOptions LangOpts{getFormattingLangOpts()};
1058+
static const LangOptions LangOpts{getFormattingLangOpts()};
10591059

10601060
auto Tokens = annotate(
10611061
"const static inline auto restrict int double long constexpr friend");

0 commit comments

Comments
 (0)