aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-01 14:55:12 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-02 11:15:36 +0200
commit7afdba8fa948efcaa8f1537af19eb1513736c146 (patch)
tree4615b9d0a935d5b53b8d11cafe7b6badc5ee9a90 /sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
parent9893580be85a9113a2c7b1dc874bee9d2aed0399 (diff)
shiboken6: Fix clazy warnings about too-large underlying types of enumerations
Use the types suggested by clang-tidy. Change-Id: I0bc80d00e75305423caa4254b1383979e89128ec Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.h')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/compilersupport.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
index 84395d28f..f8aa5b2d7 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
+++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
@@ -9,7 +9,7 @@
QT_FORWARD_DECLARE_CLASS(QString)
-enum class LanguageLevel {
+enum class LanguageLevel : std::uint8_t {
Default,
Cpp11,
Cpp14,
@@ -18,13 +18,13 @@ enum class LanguageLevel {
Cpp1Z
};
-enum class Compiler {
+enum class Compiler : std::uint8_t {
Msvc,
Gpp,
Clang
};
-enum class Platform {
+enum class Platform : std::uint8_t {
Unix,
Linux,
Windows,
@@ -33,7 +33,7 @@ enum class Platform {
iOS
};
-enum class Architecture {
+enum class Architecture : std::uint8_t {
Other,
X64,
X86,