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

Method check

lib/cppcheck.cpp:788–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788unsigned int CppCheck::check(const FileWithDetails &file)
789{
790 // TODO: handle differently?
791 // dummy call to make sure wildcards are being flagged as checked in case isSuppressed() is never called
792 {
793 // the empty ID is intentional for now - although it should not be allowed
794 ErrorMessage msg({}, file.spath(), Severity::information, "", "", Certainty::normal);
795 (void)mSuppressions.nomsg.isSuppressed(SuppressionList::ErrorMessage::fromErrorMessage(msg, {}), true);
796 }
797
798 unsigned int returnValue;
799 if (mSettings.clang)
800 returnValue = checkClang(file);
801 else
802 returnValue = checkFile(file, "");
803
804 // TODO: call analyseClangTidy()
805
806 return returnValue;
807}
808
809unsigned int CppCheck::checkBuffer(const FileWithDetails &file, const char* data, std::size_t size)
810{

Callers 1

analyseWholeProgramMethod · 0.45

Calls 12

setCPPMethod · 0.80
setCMethod · 0.80
updateFunctionDataMethod · 0.80
checkFileMethod · 0.80
isSuppressedMethod · 0.45
isEnabledMethod · 0.45
resetMethod · 0.45
emptyMethod · 0.45
findMethod · 0.45
setMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected