File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ const std::set<std::string> ErrorLogger::mCriticalErrorIds{
4747 " internalAstError" ,
4848 " instantiationError" ,
4949 " internalError" ,
50- " misra-config" ,
5150 " premium-internalError" ,
5251 " premium-invalidArgument" ,
5352 " premium-invalidLicense" ,
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ class TestErrorLogger : public TestFixture {
6565
6666 TEST_CASE (substituteTemplateFormatStatic);
6767 TEST_CASE (substituteTemplateLocationStatic);
68+
69+ TEST_CASE (isCriticalErrorId);
6870 }
6971
7072 void TestPatternSearchReplace (const std::string& idPlaceholder, const std::string& id) const {
@@ -519,6 +521,11 @@ class TestErrorLogger : public TestFixture {
519521 ASSERT_EQUALS (" {" , s);
520522 }
521523 }
524+
525+ void isCriticalErrorId () const {
526+ // It does not abort all the analysis of the file. Like "missingInclude" there can be false negatives.
527+ ASSERT_EQUALS (false , ErrorLogger::isCriticalErrorId (" misra-config" ));
528+ }
522529};
523530
524531REGISTER_TEST (TestErrorLogger)
You can’t perform that action at this time.
0 commit comments