We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9559d commit 0091893Copy full SHA for 0091893
clang/unittests/Format/TestLexer.h
@@ -61,9 +61,7 @@ class TestLexer : public UnwrappedLineConsumer {
61
std::vector<std::unique_ptr<llvm::MemoryBuffer>> &Buffers,
62
FormatStyle Style = getLLVMStyle())
63
: Allocator(Allocator), Buffers(Buffers), Style(Style),
64
- SourceMgr("test.cpp", ""), IdentTable(LangOpts) {
65
- assert(LangOpts.CPlusPlus);
66
- }
+ SourceMgr("test.cpp", ""), IdentTable(getFormattingLangOpts(Style)) {}
67
68
TokenList lex(llvm::StringRef Code) {
69
FormatTokenLexer Lex = getNewLexer(Code);
0 commit comments