aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-01 15:33:58 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-02 10:05:35 +0200
commite5410148fa4b1ac165df9ea7d3682029b4bfec03 (patch)
tree5a5c37e3ebe5b2eca93ad6a38a0b9bc82055c681 /sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp
parent6a6cf8d6c66e130b541f3d041d0da609f8b97dd0 (diff)
Use the C-string functions from namespace std, consistently
Complements 5608c60f47f6c39a6c1dee5fb165c6d70bd1ee3f. Task-number: PYSIDE-3171 Pick-to: 6.9 6.8 Change-Id: I57f0d8bbd8d0f82367f03d0f55297e74361c44da Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp
index e23b48862..a482c3a60 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp
@@ -22,6 +22,7 @@
#include <clang-c/Index.h>
#include <algorithm>
+#include <cstring>
#include <iterator>
#include <string_view>
@@ -706,7 +707,7 @@ const char *languageLevelOption(LanguageLevel l)
LanguageLevel languageLevelFromOption(const char *o)
{
for (const LanguageLevelMapping &m : languageLevelMapping) {
- if (!strcmp(m.option, o))
+ if (!std::strcmp(m.option, o))
return m.level;
}
return LanguageLevel::Default;