[clang] [Format] Do not crash on non-null terminated strings (PR #131299)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 14 09:17:57 PDT 2025
================
@@ -2031,6 +2031,7 @@ class SourceManagerForFile {
// The order of these fields are important - they should be in the same order
// as they are created in `createSourceManagerForFile` so that they can be
// deleted in the reverse order as they are created.
+ std::string ContentBuffer;
----------------
HazardyKnusperkeks wrote:
This should not go after the comment.
Or?
https://github.com/llvm/llvm-project/pull/131299
More information about the cfe-commits
mailing list