diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-01-22 13:25:44 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-01-23 16:30:15 +0100 |
| commit | 9e19ebd9c90999368dbf2db1a5e7b44cc2ddf7fa (patch) | |
| tree | 0befee52fefe0e12af49fca26d2f47552c1e0c9c /sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp | |
| parent | 31de5e520d69d47d9710ad8b97aee62ce053916f (diff) | |
shiboken6: Make more functions static using clang tidy
Apply the fix created by clang tidy'
-wreadability-convert-member-functions-to-static
warning with some manual correction.
Change-Id: I394bd96881fa25dbcb7a725b79d10395fcbb8676
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp index cf489eb2e..6da41d6b9 100644 --- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp +++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp @@ -195,7 +195,7 @@ public: TemplateParameterModelItem createNonTypeTemplateParameter(const CXCursor &cursor) const; void addField(const CXCursor &cursor); - QString cursorValueExpression(BaseVisitor *bv, const CXCursor &cursor) const; + static QString cursorValueExpression(BaseVisitor *bv, const CXCursor &cursor); void addBaseClass(const CXCursor &cursor); template <class Item> @@ -651,7 +651,7 @@ void BuilderPrivate::endTemplateTypeAlias(const CXCursor &typeAliasCursor) // extract an expression from the cursor via source // CXCursor_EnumConstantDecl, ParmDecl (a = Flag1 | Flag2) -QString BuilderPrivate::cursorValueExpression(BaseVisitor *bv, const CXCursor &cursor) const +QString BuilderPrivate::cursorValueExpression(BaseVisitor *bv, const CXCursor &cursor) { const std::string_view snippet = bv->getCodeSnippet(cursor); auto equalSign = snippet.find('='); |
