Skip to content

Commit 2e369cc

Browse files
committed
astyle formatting
[ci skip]
1 parent 19295d7 commit 2e369cc

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

lib/checkclass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,8 +1655,8 @@ void CheckClass::virtualDestructor()
16551655
if (printInconclusive) {
16561656
const Function *destructor = scope->getDestructor();
16571657
if (destructor) {
1658-
if(!((destructor->hasVirtualSpecifier() && destructor->access == AccessControl::Public) ||
1659-
(destructor->access == AccessControl::Protected))) {
1658+
if (!((destructor->hasVirtualSpecifier() && destructor->access == AccessControl::Public) ||
1659+
(destructor->access == AccessControl::Protected))) {
16601660
for (const Function &func : scope->functionList) {
16611661
if (func.hasVirtualSpecifier()) {
16621662
inconclusiveErrors.push_back(destructor);

lib/exprengine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ namespace {
172172
const std::vector<ExprEngine::Callback> &callbacks;
173173
std::vector<ExprEngine::ValuePtr> constraints;
174174

175-
void contractConstraints(const Function *function, ExprEngine::ValuePtr (*executeExpression)(const Token*, Data&)) {
175+
void contractConstraints(const Function *function, ExprEngine::ValuePtr(*executeExpression)(const Token*, Data&)) {
176176
const auto it = settings->functionContracts.find(currentFunction);
177177
if (it == settings->functionContracts.end())
178178
return;

lib/importproject.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,8 +1044,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
10441044
temp.functionContracts[function] = expects;
10451045
}
10461046
}
1047-
}
1048-
else if (strcmp(node->Name(), CppcheckXml::IgnoreElementName) == 0)
1047+
} else if (strcmp(node->Name(), CppcheckXml::IgnoreElementName) == 0)
10491048
guiProject.excludedPaths = readXmlStringList(node, "", CppcheckXml::IgnorePathName, CppcheckXml::IgnorePathNameAttrib);
10501049
else if (strcmp(node->Name(), CppcheckXml::LibrariesElementName) == 0)
10511050
guiProject.libraries = readXmlStringList(node, "", CppcheckXml::LibraryElementName, nullptr);

test/testclass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ class TestClass : public TestFixture {
26992699
" delete base;\n"
27002700
"}\n", true);
27012701
ASSERT_EQUALS("[test.cpp:3]: (error) Class 'Base' which is inherited by class 'Derived' does not have a virtual destructor.\n", errout.str());
2702-
2702+
27032703
// class Base destructor is not virtual but protected -> no error
27042704
checkVirtualDestructor("class Base {\n"
27052705
"public:\n"

0 commit comments

Comments
 (0)