[clang] 0c0ae37 - [clang-format] Update QtPropertyKeywords to Qt 6.11 documentation (#190543)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 11 12:12:35 PDT 2026
Author: Eugene Shalygin
Date: 2026-04-11T21:12:30+02:00
New Revision: 0c0ae3786ef4ec04ba0dc9cdd565b68ec486498a
URL: https://github.com/llvm/llvm-project/commit/0c0ae3786ef4ec04ba0dc9cdd565b68ec486498a
DIFF: https://github.com/llvm/llvm-project/commit/0c0ae3786ef4ec04ba0dc9cdd565b68ec486498a.diff
LOG: [clang-format] Update QtPropertyKeywords to Qt 6.11 documentation (#190543)
Qt 6.11 added `OVERRIDE` and `VIRTUAL` keywords to the [property
system](https://doc.qt.io/qt-6.11/properties.html).
Added:
Modified:
clang/lib/Format/FormatToken.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/FormatToken.cpp b/clang/lib/Format/FormatToken.cpp
index 28fdbcbf0e47f..35f9637fb4de4 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, 16> QtPropertyKeywords = {
+ "BINDABLE", "CONSTANT", "DESIGNABLE", "FINAL", "MEMBER", "NOTIFY",
+ "OVERRIDE", "READ", "REQUIRED", "RESET", "REVISION", "SCRIPTABLE",
+ "STORED", "USER", "VIRTUAL", "WRITE",
};
bool FormatToken::isQtProperty() const {
More information about the cfe-commits
mailing list