Commit a2155773 authored by Kai Stierand's avatar Kai Stierand Committed by Milian Wolff
Browse files

fix style

parent cb362b79
Pipeline #192509 passed with stage
in 16 minutes and 55 seconds
......@@ -283,7 +283,7 @@ void TestClangUtils::testGetCursorSignature()
return CXChildVisit_Recurse;
}
});
QVERIFY2(! clang_Cursor_isNull(functionCursor), "function not found");
QVERIFY2(!clang_Cursor_isNull(functionCursor), "function not found");
auto scope = ClangUtils::getScope(functionCursor, startCursor);
auto signature = ClangUtils::getCursorSignature(functionCursor, scope, {});
QCOMPARE(signature, expectedSignature);
......
......@@ -232,7 +232,7 @@ QString ClangUtils::getCursorSignature(CXCursor cursor, const QString& scope, co
}
QString functionName = ClangString(clang_getCursorSpelling(cursor)).toString();
if (functionName.contains(QLatin1Char('<')) && ! functionName.startsWith(QStringLiteral("operator<"))) {
if (functionName.contains(QLatin1Char('<')) && !functionName.startsWith(QStringLiteral("operator<"))) {
stream << functionName.leftRef(functionName.indexOf(QLatin1Char('<')));
} else {
stream << functionName;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment