0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-11-01 11:28:51 +00:00
Files
termux-packages/x11-packages/qt-creator/llvm-stringref-startswith.patch
2025-06-24 19:27:14 +08: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;
}