Skip to content

Commit 2d28d8d

Browse files
committed
critical error: clangImportSkipFile
1 parent 2be1538 commit 2d28d8d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file, int fileIndex)
683683
const bool isPytest = mSettings.debugast || mSettings.debugsymdb || (startsWith(file.spath(), "test.") || file.spath().find("/test.") != std::string::npos || endsWith(file.spath(), "/test_2"));
684684
if (!isPytest) {
685685
ErrorMessage::FileLocation loc{file.spath(),0,0};
686-
ErrorMessage msg({loc}, nullptr, Severity::error, "skipFileClangImport", "Cppcheck clang import does not work well for c++ code, skipping file", Certainty::normal);
686+
ErrorMessage msg({loc}, file.spath(), Severity::error, "Cppcheck clang import does not work well for c++ code, skipping file", "clangImportSkipFile", Certainty::normal);
687687
mErrorLogger.reportErr(msg);
688688
return 0;
689689
}

lib/errorlogger.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ const std::set<std::string> ErrorLogger::mCriticalErrorIds{
5353
"premium-invalidLicense",
5454
"preprocessorErrorDirective",
5555
"syntaxError",
56-
"unknownMacro"
56+
"unknownMacro",
57+
"clangImportSkipFile"
5758
};
5859

5960
ErrorMessage::ErrorMessage()

0 commit comments

Comments
 (0)