Astyle formatting
This commit is contained in:
parent
5126e4b1af
commit
18aa968a7a
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue