[clang] [clang-format] Support of TableGen value annotations. (PR #80299)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 5 12:22:08 PST 2024
================
@@ -816,7 +816,7 @@ void FormatTokenLexer::handleTableGenMultilineString() {
auto CloseOffset = Lex->getBuffer().find("}]", OpenOffset);
if (CloseOffset == StringRef::npos)
return;
- auto Text = Lex->getBuffer().substr(OpenOffset, CloseOffset + 2);
+ auto Text = Lex->getBuffer().substr(OpenOffset, CloseOffset - OpenOffset + 2);
----------------
HazardyKnusperkeks wrote:
That would be appreciated.
https://github.com/llvm/llvm-project/pull/80299
More information about the cfe-commits
mailing list