diff options
| author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2025-03-30 14:49:56 +0300 |
|---|---|---|
| committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2025-03-30 14:49:56 +0300 |
| commit | 83b91bf9dbdde0bd51c1906168ad4b4ecef54420 (patch) | |
| tree | 6a2e96b4a41c72160a57696af0ede95bc29f55d6 /src/qdoc/tokenizer.h | |
| parent | 1db38dc7d01e2b0567fc6d92c7aa58bfe69ce9c3 (diff) | |
| parent | 6b85f003930b2776684f114c139cec86fb9b9918 (diff) | |
Merge tag 'v5.15.18-lts' into tqtc/lts-5.15-opensourcev5.15.18-lts-lgpl5.15
Qt 5.15.18-lts release
Change-Id: I8544dfbea95d7cb4c987b52ea2ddfe7350b43dd1
Diffstat (limited to 'src/qdoc/tokenizer.h')
| -rw-r--r-- | src/qdoc/tokenizer.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/qdoc/tokenizer.h b/src/qdoc/tokenizer.h index 64f188f07..104e8efbf 100644 --- a/src/qdoc/tokenizer.h +++ b/src/qdoc/tokenizer.h @@ -177,12 +177,14 @@ private: void init(); void start(const Location &loc); /* - This limit on the length of a lexeme seems fairly high, but a - doc comment can be arbitrarily long. The previous 65,536 limit - was reached by Mark Summerfield. - */ - enum { yyLexBufSize = 524288 }; + Represents the maximum amount of characters that a token can be composed + of. + When a token with more characters than the maximum amount is encountered, a + warning is issued and parsing continues, discarding all characters from the + currently parsed token that don't fit into the buffer. + */ + enum { yyLexBufSize = 1048576 }; int getch() { return yyPos == yyIn.size() ? EOF : yyIn[yyPos++]; } inline int getChar() |
