We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
constexpr std::array
QtPropertyKeywords
CppNonKeywordTypes
1 parent 813bbca commit 60fbefcCopy full SHA for 60fbefc
clang/lib/Format/FormatToken.cpp
@@ -33,7 +33,7 @@ const char *getTokenTypeName(TokenType Type) {
33
return nullptr;
34
}
35
36
-static SmallVector<StringRef> QtPropertyKeywords = {
+static constexpr std::array<StringRef, 14> QtPropertyKeywords = {
37
"BINDABLE", "CONSTANT", "DESIGNABLE", "FINAL", "MEMBER",
38
"NOTIFY", "READ", "REQUIRED", "RESET", "REVISION",
39
"SCRIPTABLE", "STORED", "USER", "WRITE",
@@ -46,7 +46,7 @@ bool FormatToken::isQtProperty() const {
46
47
48
// Sorted common C++ non-keyword types.
49
-static SmallVector<StringRef> CppNonKeywordTypes = {
+static constexpr std::array<StringRef, 14> CppNonKeywordTypes = {
50
"clock_t", "int16_t", "int32_t", "int64_t", "int8_t",
51
"intptr_t", "ptrdiff_t", "size_t", "time_t", "uint16_t",
52
"uint32_t", "uint64_t", "uint8_t", "uintptr_t",
0 commit comments