https://github.com/zeule created 
https://github.com/llvm/llvm-project/pull/190543

In Qt sources the "OVERRIDE" specifier is allowed in addition to what Qt 
documentation for Q_PROPERTY says.

Fixes: 583256d165cb ("[clang-format] Add AllowBreakBeforeQtProperty option 
(#159909)")

>From 9ae6949cbab1b9bafe9ab5c7b5dab098ef94714e Mon Sep 17 00:00:00 2001
From: Eugene Shalygin <[email protected]>
Date: Sun, 5 Apr 2026 20:00:31 +0200
Subject: [PATCH] [clang-format] add "OVERRIDE" to Q_PROPERTY keywords

In Qt sources the "OVERRIDE" specifier is allowed in addition to what Qt
documentation for Q_PROPERTY says.

Fixes: 583256d165cb ("[clang-format] Add AllowBreakBeforeQtProperty option 
(#159909)")
---
 clang/lib/Format/FormatToken.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/clang/lib/Format/FormatToken.cpp b/clang/lib/Format/FormatToken.cpp
index 28fdbcbf0e47f..0ee68c119eceb 100644
--- a/clang/lib/Format/FormatToken.cpp
+++ b/clang/lib/Format/FormatToken.cpp
@@ -33,10 +33,10 @@ const char *getTokenTypeName(TokenType Type) {
   return nullptr;
 }
 
-static constexpr std::array<StringRef, 14> QtPropertyKeywords = {
-    "BINDABLE",   "CONSTANT", "DESIGNABLE", "FINAL", "MEMBER",
-    "NOTIFY",     "READ",     "REQUIRED",   "RESET", "REVISION",
-    "SCRIPTABLE", "STORED",   "USER",       "WRITE",
+static constexpr std::array<StringRef, 15> QtPropertyKeywords = {
+    "BINDABLE", "CONSTANT",   "DESIGNABLE", "FINAL",    "MEMBER",
+    "NOTIFY",   "OVERRIDE",   "READ",       "REQUIRED", "RESET",
+    "REVISION", "SCRIPTABLE", "STORED",     "USER",     "WRITE",
 };
 
 bool FormatToken::isQtProperty() const {

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to