| 786 | } |
| 787 | |
| 788 | unsigned 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 | |
| 809 | unsigned int CppCheck::checkBuffer(const FileWithDetails &file, const char* data, std::size_t size) |
| 810 | { |
no test coverage detected