Files
termux-packages/x11-packages/qt-creator/llvm-stringref-startswith.patch
2025-06-24 11:37:24 +00:00

15 lines
373 B
Diff

--- a/src/plugins/clangformat/clangformatbaseindenter.cpp
+++ b/src/plugins/clangformat/clangformatbaseindenter.cpp
@@ -73,7 +73,11 @@
llvm::StringRef clearExtraNewline(llvm::StringRef text)
{
+#if LLVM_VERSION_MAJOR >= 19
+ while (text.starts_with("\n\n"))
+#else
while (text.startswith("\n\n"))
+#endif
text = text.drop_front();
return text;
}