Skip to content

Commit 3ef3a60

Browse files
committed
astyle formatting
1 parent a9b1f4c commit 3ef3a60

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎lib/checkunusedfunctions.cpp‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const char Fi
232232
}
233233

234234

235-
static bool isOperatorFunction(const std::string & funcName) {
235+
static bool isOperatorFunction(const std::string & funcName)
236+
{
236237
/* Operator functions are invalid function names for C, so no need to check
237238
* this in here. As result the returned error function might be incorrect.
238239
*
@@ -271,10 +272,10 @@ static bool isOperatorFunction(const std::string & funcName) {
271272
}
272273

273274
const std::vector<std::string> additionalOperators = make_container< std::vector<std::string> >()
274-
<< "new"
275-
<< "new[]"
276-
<< "delete"
277-
<< "delete[]";
275+
<< "new"
276+
<< "new[]"
277+
<< "delete"
278+
<< "delete[]";
278279

279280

280281
return std::find(additionalOperators.begin(), additionalOperators.end(), funcName.substr(operatorPrefix.length())) != additionalOperators.end();;
@@ -298,9 +299,9 @@ bool CheckUnusedFunctions::check(ErrorLogger * const errorLogger, const Settings
298299
continue;
299300
std::string filename;
300301
if (func.filename != "+")
301-
filename = func.filename;
302-
unusedFunctionError(errorLogger, filename, func.lineNumber, it->first);
303-
errors = true;
302+
filename = func.filename;
303+
unusedFunctionError(errorLogger, filename, func.lineNumber, it->first);
304+
errors = true;
304305
} else if (! func.usedOtherFile) {
305306
/** @todo add error message "function is only used in <file> it can be static" */
306307
/*

0 commit comments

Comments
 (0)