File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,11 @@ namespace {
27
27
EXPECT_EQ (VALUE, Style.FIELD) << " Unexpected value after parsing!"
28
28
29
29
class QualifierFixerTest : public FormatTestBase {
30
- public:
31
- QualifierFixerTest () : LangOpts(getFormattingLangOpts()) {}
32
-
33
30
protected:
34
31
TokenList annotate (llvm::StringRef Code,
35
32
const FormatStyle &Style = getLLVMStyle()) {
36
33
return TestLexer (Allocator, Buffers, Style).annotate (Code);
37
34
}
38
- LangOptions LangOpts;
39
35
llvm::SpecificBumpPtrAllocator<FormatToken> Allocator;
40
36
std::vector<std::unique_ptr<llvm::MemoryBuffer>> Buffers;
41
37
};
@@ -1059,6 +1055,8 @@ TEST_F(QualifierFixerTest, IsQualifierType) {
1059
1055
ConfiguredTokens.push_back (tok::kw_constexpr);
1060
1056
ConfiguredTokens.push_back (tok::kw_friend);
1061
1057
1058
+ LangOptions LangOpts{getFormattingLangOpts ()};
1059
+
1062
1060
auto Tokens = annotate (
1063
1061
" const static inline auto restrict int double long constexpr friend" );
1064
1062
ASSERT_EQ (Tokens.size (), 11u ) << Tokens;
You can’t perform that action at this time.
0 commit comments