MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getFileInfo

Method getFileInfo

lib/checknullpointer.cpp:607–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607const Check::FileInfo *CheckNullPointer::getFileInfo(const Tokenizer &tokenizer, const Settings &settings, const std::string& currentConfig) const
608{
609 (void)currentConfig;
610
611 const std::list<CTU::FileInfo::UnsafeUsage> &unsafeUsage = CTU::getUnsafeUsage(tokenizer, settings, ::isUnsafeUsage);
612 if (unsafeUsage.empty())
613 return nullptr;
614
615 auto *fileInfo = new MyFileInfo(tokenizer.list.getFiles()[0]);
616 fileInfo->unsafeUsage = unsafeUsage;
617 return fileInfo;
618}
619
620const Check::FileInfo * CheckNullPointer::loadFileInfoFromXml(const tinyxml2::XMLElement *xmlElement, const std::string& file0) const
621{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected