aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
index 6c0cf3ae2..43334c306 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
@@ -127,10 +127,10 @@ std::string_view BaseVisitor::getCodeSnippet(const CXCursor &cursor)
bool BaseVisitor::_handleVisitLocation(const CXSourceLocation &location)
{
- CXFile cxFile; // void *
- unsigned line;
- unsigned column;
- unsigned offset;
+ CXFile cxFile{}; // void *
+ unsigned line{};
+ unsigned column{};
+ unsigned offset{};
clang_getExpansionLocation(location, &cxFile, &line, &column, &offset);
if (cxFile == m_currentCxFile) // Same file?
@@ -264,7 +264,7 @@ static CXTranslationUnit createTranslationUnit(CXIndex index,
QScopedArrayPointer<const char *> argv(byteArrayListToFlatArgV(clangArgs));
qDebug().noquote().nospace() << msgCreateTranslationUnit(clangArgs, flags);
- CXTranslationUnit tu;
+ CXTranslationUnit tu{};
CXErrorCode err = clang_parseTranslationUnit2(index, nullptr, argv.data(),
clangArgs.size(), nullptr, 0,
defaultFlags | flags, &tu);