Astyle formatting

This commit is contained in:
Daniel Marjamäki 2019-03-23 19:03:57 +01:00
parent 5126e4b1af
commit 18aa968a7a
1 changed files with 9 additions and 9 deletions

View File

@ -690,7 +690,8 @@ Check::FileInfo * CheckBufferOverrun::loadFileInfoFromXml(const tinyxml2::XMLEle
} }
/** @brief Analyse all file infos for all TU */ /** @brief Analyse all file infos for all TU */
bool CheckBufferOverrun::analyseWholeProgram(const CTU::FileInfo *ctu, const std::list<Check::FileInfo*> &fileInfo, const Settings& settings, ErrorLogger &errorLogger) { bool CheckBufferOverrun::analyseWholeProgram(const CTU::FileInfo *ctu, const std::list<Check::FileInfo*> &fileInfo, const Settings& settings, ErrorLogger &errorLogger)
{
if (!ctu) if (!ctu)
return false; return false;
bool foundErrors = false; bool foundErrors = false;
@ -698,8 +699,7 @@ bool CheckBufferOverrun::analyseWholeProgram(const CTU::FileInfo *ctu, const std
const std::map<std::string, std::list<const CTU::FileInfo::CallBase *>> callsMap = ctu->getCallsMap(); const std::map<std::string, std::list<const CTU::FileInfo::CallBase *>> callsMap = ctu->getCallsMap();
for (Check::FileInfo *fi1 : fileInfo) for (Check::FileInfo *fi1 : fileInfo) {
{
const MyFileInfo *fi = dynamic_cast<MyFileInfo*>(fi1); const MyFileInfo *fi = dynamic_cast<MyFileInfo*>(fi1);
if (!fi) if (!fi)
continue; continue;
@ -707,12 +707,12 @@ bool CheckBufferOverrun::analyseWholeProgram(const CTU::FileInfo *ctu, const std
const CTU::FileInfo::FunctionCall *functionCall = nullptr; const CTU::FileInfo::FunctionCall *functionCall = nullptr;
const std::list<ErrorLogger::ErrorMessage::FileLocation> &locationList = const std::list<ErrorLogger::ErrorMessage::FileLocation> &locationList =
ctu->getErrorPath(CTU::FileInfo::InvalidValueType::bufferOverflow, ctu->getErrorPath(CTU::FileInfo::InvalidValueType::bufferOverflow,
unsafeUsage, unsafeUsage,
callsMap, callsMap,
"Using argument ARG", "Using argument ARG",
&functionCall, &functionCall,
false); false);
if (locationList.empty()) if (locationList.empty())
continue; continue;