Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ImplementEssentialTypes#188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lcartey merged 30 commits intomainfromlcartey/essential-types
Mar 9, 2023
Merged

ImplementEssentialTypes#188

lcartey merged 30 commits intomainfromlcartey/essential-types
Mar 9, 2023

Conversation

@lcartey
Copy link
Contributor

@lcarteylcartey commentedFeb 13, 2023
edited
Loading

Description

This PR adds support for the newEssentialTypes package.

MISRA C 2012 defines its own a type system on top of C that is more restrictive - in order to identify, in particular, implicit conversions which are surprising or undesirable.

  • AMisraExpressions.qll library, which provides some utility definitions from both MISRA and the C Standard to help implement the rules. This includes CodeQL classes and predicates representing:
    • A variety of models of booleans in C, covering bothstdbool.h and common hand crafted definitions.
    • Composite operators - as specified by MISRA (essentially+ - * / % + -).
    • Composite expressions - any use of a composite operator that is not constant.
    • Operators with the usual arithmetic conversions on operands (as specified by the C Standard 6.3.1.8).
  • AEssentialTypes.qll library, which provides the following key interfaces:
    • EssentialTypeCategory - each essential type is part of an essential type category, which we represent here with anewtype.
    • getEssentialType(Expr e) - gets the essential type of an expression, if any. Essential types are focused on arithmetic and related types - integrals, floats, booleans and enums.
    • getEssentialTypeCategory(Type essentialType) - given an essential type, provides the type category.
    • isAssignmentToEssentialType - use to identify "assignments" to a particular essential type. Note: "assignment" is very broadly defined by Appendix J of MISRA C 2012, and includes function calls, initializers etc.

These utilities are used to implement each of the rules. The implementation of the rules is comparatively straight forward given the library, as mostly it's verifying equality or difference of type categories or essential types.

Change request type

  • Release or process automation (GitHub workflows, internal scripts)
  • Internal documentation
  • External documentation
  • Query files (.ql,.qll,.qls or unit tests)
  • External scripts (analysis report or other code shipped as part of a release)

Rules with added or modified queries

  • No rules added
  • Queries have been added for the following rules:
    • Rule 10.1
    • Rule 10.2
    • Rule 10.3
    • Rule 10.4
    • Rule 10.5
    • Rule 10.6
    • Rule 10.7
    • Rule 10.8
    • Rule 14.1
    • Rule 21.14
    • Rule 21.16
  • Queries have been modified for the following rules:
    • rule number here

Release change checklist

A change note (development_handbook.md#change-notes) is required for any pull request which modifies:

  • The structure or layout of the release artifacts.
  • The evaluation performance (memory, execution time) of an existing query.
  • The results of an existing query in any circumstance.

If you are only adding new rule queries, a change note is not required.

Author: Is a change note required?

  • Yes
  • No

🚨🚨🚨
Reviewer: Confirm that format ofshared queries (not the .qll file, the
.ql file that imports it) is valid by running them within VS Code.

  • Confirmed

Reviewer: Confirm that either a change note is not required or the change note is required and has been added.

  • Confirmed

Query development review checklist

For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:

Author

  • Have all the relevant rule package description files been checked in?
  • Have you verified that the metadata properties of each new query is set appropriately?
  • Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
  • Are the alert messages properly formatted and consistent with thestyle guide?
  • Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
    As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
  • Does the query have an appropriate level of in-query comments/documentation?
  • Have you considered/identified possible edge cases?
  • Does the query not reinvent features in the standard library?
  • Can the query be simplified further (not golfed!)

Reviewer

  • Have all the relevant rule package description files been checked in?
  • Have you verified that the metadata properties of each new query is set appropriately?
  • Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
  • Are the alert messages properly formatted and consistent with thestyle guide?
  • Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
    As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
  • Does the query have an appropriate level of in-query comments/documentation?
  • Have you considered/identified possible edge cases?
  • Does the query not reinvent features in the standard library?
  • Can the query be simplified further (not golfed!)

Update the rules.csv to identify a new package dealing with the"essential" types identified by MISRA C 2012.
The essential types rules refer to a number of shared MISRA definitionswhich have been represented in this utility module.
This module calculates and reports the essential type of each givenexpression in the program, as defined in the MISRA C:2012 standard.The essential type for an expression is calculated based on the ASTtype of the expression. Where it differs from the standard type,the calculation is overridden to implement the MISRA definition.Various utility methods related to essential types are included.
Adds queries to identify operators where the operands are of aninappropriate essential type, according to the MISRA specified rules.
Adds a query that detects inappropriate addition or subtractionoperations on operands of essentially character type.
Adds a query that finds "assignments", as defined by MISRA C 2012, toincompatible essential types.
Adds a query that finds operands to operators with the usual arithmeticconversions that are incompatible.
Adds a query that identifies explicit casts to an inappropriateessential type, according to the conditions set by MISRA C 2012.
Adds a query which identifies "assignments" (as defined by MISRA C 2012)from composite expressions to objects of a wider essential type.
Adds a query which identifies implicit conversions of compositeexpressions that cause it to be casted to a wider essential type.
Adds a query to check for inappropriate casts of composite expressionsto wider essential types.
When computing EssentialTypeCategories, ensure we resolve any typedefsfirst.
Adds a query that finds loop counters which are essentially floatingtype.
Ensure when calculating the essential type category, we strip the typespecifiers, otherwise we will not match the correct type category.
Adds a query to find uses of memcmp with pointer types which areprohibited by MISRA C.
@lcartey
Copy link
ContributorAuthor

Updated with final two rules, improved metadata and addressing some bugs related to typedefs and specifiers. Moving out of draft.

@lcarteylcartey marked this pull request as ready for reviewFebruary 14, 2023 14:12
This query looks for use of memcmp, but previously it would not haveworked if the user was using C++ and specified std::memcmp.Although this rule is targeted at C, it is one that a user might enablefor C++ and expect to work.
Adds a query to detect the use of memcmp to compare null-terminatedstrings, using global data flow from hard-coded string literals orarray literals.
@lcartey
Copy link
ContributorAuthor

Updated to add Rule 21.14, which also refers to essential types.

Copy link
Contributor

@jsingletjsinglet left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I can't find anything to pick on here -- great work Luke! I think you just have a failing unit test to take care of.

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

The computation of essential type category was incorrect when the typewas a typedef of a boolean.
@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

Compiler testing showed that the switch cases were not valid as theyrequired a statement. Added breaks to satisfy this condition.
@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

QUERY                : PointerTypeOnLogicalOperatorPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-1TEST_PASS            : TrueQUERY                : OperandsOfAnInappropriateEssentialTypePACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-1TEST_PASS            : TrueQUERY                : AdditionSubtractionOnEssentiallyCharTypePACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-2TEST_PASS            : TrueQUERY                : AssignmentOfIncompatibleEssentialTypePACKAGE              : EssentialTypesCOMPILE_PASS         : FalseCOMPILE_ERROR_OUTPUT : [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:119:7: warning: implicit conversion from 'long' to 'unsigned int' changes value from 4294967296 to 0 [-Wconstant-conversion]                       [2023-03-08 23:30:55] [build-stderr]   u = 4294967296; // NON_COMPLIANT - cannot be stored in an int, so exception                       [2023-03-08 23:30:55] [build-stderr]     ~ ^~~~~~~~~~                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:129:3: warning: switch condition has boolean value [-Wswitch-bool]                       [2023-03-08 23:30:55] [build-stderr]   switch (b) {                       [2023-03-08 23:30:55] [build-stderr]   ^       ~                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:133:28: error: label at end of compound statement: expected statement                       [2023-03-08 23:30:55] [build-stderr]   case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]                            ^                       [2023-03-08 23:30:55] [build-stderr]                             ;                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:133:8: warning: overflow converting case value to switch condition type (200 to 0) [-Wswitch]                       [2023-03-08 23:30:55] [build-stderr]   case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]        ^                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:132:8: warning: overflow converting case value to switch condition type (100 to 0) [-Wswitch]                       [2023-03-08 23:30:55] [build-stderr]   case 100:                 // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]        ^                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:141:28: error: label at end of compound statement: expected statement                       [2023-03-08 23:30:55] [build-stderr]   case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]                            ^                       [2023-03-08 23:30:55] [build-stderr]                             ;                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:140:8: warning: case value not in enumerated type 'enum E1' [-Wswitch]                       [2023-03-08 23:30:55] [build-stderr]   case 100:                 // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]        ^                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:141:8: warning: case value not in enumerated type 'enum E1' [-Wswitch]                       [2023-03-08 23:30:55] [build-stderr]   case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]        ^                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:137:11: warning: enumeration value 'C' not handled in switch [-Wswitch]                       [2023-03-08 23:30:55] [build-stderr]   switch (e1) {                       [2023-03-08 23:30:55] [build-stderr]           ^                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:149:28: error: label at end of compound statement: expected statement                       [2023-03-08 23:30:55] [build-stderr]   case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:30:55] [build-stderr]                            ^                       [2023-03-08 23:30:55] [build-stderr]                             ;                       [2023-03-08 23:30:55] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:157:28: error: label at end of compound statement: expected statement                       [2023-03-08 23:30:55] [build-stderr]   case ((unsigned int)200): // COMPLIANT - by exception 1                       [2023-03-08 23:30:55] [build-stderr]                            ^                       [2023-03-08 23:30:55] [build-stderr]                             ;                       [2023-03-08 23:30:55] [build-stderr] 7 warnings and 4 errors generated.                       [2023-03-08 23:30:55] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c])                       TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-3TEST_PASS            : FalseQUERY                : OperandsWithMismatchedEssentialTypeCategoryPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-4TEST_PASS            : TrueQUERY                : InappropriateEssentialTypeCastPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-5TEST_PASS            : TrueQUERY                : AssignmentToWiderEssentialTypePACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-6TEST_PASS            : TrueQUERY                : ImplicitConversionOfCompositeExpressionPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-7TEST_PASS            : TrueQUERY                : InappropriateCastOfCompositeExpressionPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-10-8TEST_PASS            : TrueQUERY                : LoopOverEssentiallyFloatTypePACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-14-1TEST_PASS            : TrueQUERY                : MemcmpUsedToCompareNullTerminatedStringsPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-21-14TEST_PASS            : TrueQUERY                : DefineAndUndefUsedOnReservedIdentifierOrMacroNamePACKAGE              : Preprocessor4COMPILE_PASS         : FalseCOMPILE_ERROR_OUTPUT : [2023-03-08 23:34:17] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c:4:9: error: 'defined' cannot be used as a macro name                       [2023-03-08 23:34:17] [build-stderr] #define defined // NON_COMPLIANT                       [2023-03-08 23:34:17] [build-stderr]         ^                       [2023-03-08 23:34:17] [build-stderr] 1 error generated.                       [2023-03-08 23:34:17] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c])                       TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-21-1TEST_PASS            : FalseQUERY                : MemcmpOnInappropriateEssentialTypeArgsPACKAGE              : EssentialTypesCOMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : SUITE                : MISRA-C-2012RULE                 : RULE-21-16TEST_PASS            : True

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

SUITE                : MISRA-C-2012QUERY                : PointerTypeOnLogicalOperatorTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-1TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : OperandsOfAnInappropriateEssentialTypeTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-1TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : AdditionSubtractionOnEssentiallyCharTypeTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-2TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : AssignmentOfIncompatibleEssentialTypeTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c: In function 'testException1':                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:119:7: warning: unsigned conversion from 'long int' to 'unsigned int' changes value from '4294967296' to '0' [-Woverflow]                       [2023-03-08 23:32:38] [build-stderr]    u = 4294967296; // NON_COMPLIANT - cannot be stored in an int, so exception                       [2023-03-08 23:32:38] [build-stderr]        ^~~~~~~~~~                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c: In function 'testSwitchCase':                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:132:3: warning: case label value exceeds maximum value for type                       [2023-03-08 23:32:38] [build-stderr]    case 100:                 // NON_COMPLIANT                       [2023-03-08 23:32:38] [build-stderr]    ^~~~                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:133:3: warning: case label value exceeds maximum value for type                       [2023-03-08 23:32:38] [build-stderr]    case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:32:38] [build-stderr]    ^~~~                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:133:8: error: label at end of compound statement                       [2023-03-08 23:32:38] [build-stderr]    case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:32:38] [build-stderr]         ^                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:129:3: warning: switch condition has boolean value [-Wswitch-bool]                       [2023-03-08 23:32:38] [build-stderr]    switch (b) {                       [2023-03-08 23:32:38] [build-stderr]    ^~~~~~                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:141:8: error: label at end of compound statement                       [2023-03-08 23:32:38] [build-stderr]    case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:32:38] [build-stderr]         ^                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:149:8: error: label at end of compound statement                       [2023-03-08 23:32:38] [build-stderr]    case ((unsigned int)200): // NON_COMPLIANT                       [2023-03-08 23:32:38] [build-stderr]         ^                       [2023-03-08 23:32:38] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c:157:8: error: label at end of compound statement                       [2023-03-08 23:32:38] [build-stderr]    case ((unsigned int)200): // COMPLIANT - by exception 1                       [2023-03-08 23:32:38] [build-stderr]         ^                       [2023-03-08 23:32:39] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-10-3/test.c])                       PACKAGE              : EssentialTypesRULE                 : RULE-10-3TEST_PASS            : FalseCOMPILE_PASS         : FalseSUITE                : MISRA-C-2012QUERY                : OperandsWithMismatchedEssentialTypeCategoryTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-4TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : InappropriateEssentialTypeCastTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-5TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : AssignmentToWiderEssentialTypeTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-6TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : ImplicitConversionOfCompositeExpressionTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-7TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : InappropriateCastOfCompositeExpressionTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-10-8TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : LoopOverEssentiallyFloatTypeTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-14-1TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : MemcmpUsedToCompareNullTerminatedStringsTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-21-14TEST_PASS            : TrueCOMPILE_PASS         : TrueSUITE                : MISRA-C-2012QUERY                : DefineAndUndefUsedOnReservedIdentifierOrMacroNameTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : [2023-03-08 23:36:10] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c:4:9: error: "defined" cannot be used as a macro name                       [2023-03-08 23:36:10] [build-stderr]  #define defined // NON_COMPLIANT                       [2023-03-08 23:36:10] [build-stderr]          ^~~~~~~                       [2023-03-08 23:36:11] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c])                       PACKAGE              : Preprocessor4RULE                 : RULE-21-1TEST_PASS            : FalseCOMPILE_PASS         : FalseSUITE                : MISRA-C-2012QUERY                : MemcmpOnInappropriateEssentialTypeArgsTEST_DIFFERENCE      : COMPILE_ERROR_OUTPUT : PACKAGE              : EssentialTypesRULE                 : RULE-21-16TEST_PASS            : TrueCOMPILE_PASS         : True

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

PACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-1QUERY                : PointerTypeOnLogicalOperatorTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-1QUERY                : OperandsOfAnInappropriateEssentialTypeTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-2QUERY                : AdditionSubtractionOnEssentiallyCharTypeTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-3QUERY                : AssignmentOfIncompatibleEssentialTypeTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-4QUERY                : OperandsWithMismatchedEssentialTypeCategoryTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-5QUERY                : InappropriateEssentialTypeCastTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-6QUERY                : AssignmentToWiderEssentialTypeTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-7QUERY                : ImplicitConversionOfCompositeExpressionTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-10-8QUERY                : InappropriateCastOfCompositeExpressionTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-14-1QUERY                : LoopOverEssentiallyFloatTypeTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-21-14QUERY                : MemcmpUsedToCompareNullTerminatedStringsTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TruePACKAGE              : Preprocessor4TEST_PASS            : FalseRULE                 : RULE-21-1QUERY                : DefineAndUndefUsedOnReservedIdentifierOrMacroNameTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : [2023-03-08 23:38:48] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c:4:9: error: 'defined' cannot be used as a macro name                       [2023-03-08 23:38:48] [build-stderr] #define defined // NON_COMPLIANT                       [2023-03-08 23:38:48] [build-stderr]         ^                       [2023-03-08 23:38:48] [build-stderr] 1 error generated.                       [2023-03-08 23:38:48] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c])                       COMPILE_PASS         : FalsePACKAGE              : EssentialTypesTEST_PASS            : TrueRULE                 : RULE-21-16QUERY                : MemcmpOnInappropriateEssentialTypeArgsTEST_DIFFERENCE      : SUITE                : MISRA-C-2012COMPILE_ERROR_OUTPUT : COMPILE_PASS         : True

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

RULE                 : RULE-10-1TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : PointerTypeOnLogicalOperatorPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-1TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : OperandsOfAnInappropriateEssentialTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-2TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : AdditionSubtractionOnEssentiallyCharTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-3TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : AssignmentOfIncompatibleEssentialTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-4TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : OperandsWithMismatchedEssentialTypeCategoryPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-5TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : InappropriateEssentialTypeCastPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-6TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : AssignmentToWiderEssentialTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-7TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : ImplicitConversionOfCompositeExpressionPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-10-8TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : InappropriateCastOfCompositeExpressionPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-14-1TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : LoopOverEssentiallyFloatTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-21-14TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : MemcmpUsedToCompareNullTerminatedStringsPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012RULE                 : RULE-21-1TEST_DIFFERENCE      : COMPILE_PASS         : FalseCOMPILE_ERROR_OUTPUT : [2023-03-08 23:38:50] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c:4:9: error: "defined" cannot be used as a macro name                       [2023-03-08 23:38:50] [build-stderr]  #define defined // NON_COMPLIANT                       [2023-03-08 23:38:50] [build-stderr]          ^~~~~~~                       [2023-03-08 23:38:50] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c])                       TEST_PASS            : FalseQUERY                : DefineAndUndefUsedOnReservedIdentifierOrMacroNamePACKAGE              : Preprocessor4SUITE                : MISRA-C-2012RULE                 : RULE-21-16TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : MemcmpOnInappropriateEssentialTypeArgsPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

@lcarteylcarteyenabled auto-mergeMarch 9, 2023 00:00
@lcarteylcarteydisabled auto-mergeMarch 9, 2023 00:00
@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

@lcarteylcarteyenabled auto-mergeMarch 9, 2023 00:00
@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_PASS         : TrueQUERY                : PointerTypeOnLogicalOperatorCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-1PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : OperandsOfAnInappropriateEssentialTypeCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-1PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : AdditionSubtractionOnEssentiallyCharTypeCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-2PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : AssignmentOfIncompatibleEssentialTypeCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-3PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : OperandsWithMismatchedEssentialTypeCategoryCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-4PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : InappropriateEssentialTypeCastCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-5PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : AssignmentToWiderEssentialTypeCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-6PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : ImplicitConversionOfCompositeExpressionCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-7PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : InappropriateCastOfCompositeExpressionCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-10-8PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : LoopOverEssentiallyFloatTypeCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-14-1PACKAGE              : EssentialTypesCOMPILE_PASS         : TrueQUERY                : MemcmpUsedToCompareNullTerminatedStringsCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-21-14PACKAGE              : EssentialTypesCOMPILE_PASS         : FalseQUERY                : DefineAndUndefUsedOnReservedIdentifierOrMacroNameCOMPILE_ERROR_OUTPUT : [2023-03-09 00:07:31] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c:4:9: error: "defined" cannot be used as a macro name                       [2023-03-09 00:07:31] [build-stderr]  #define defined // NON_COMPLIANT                       [2023-03-09 00:07:31] [build-stderr]          ^~~~~~~                       [2023-03-09 00:07:31] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, gcc, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c])                       SUITE                : MISRA-C-2012TEST_PASS            : FalseTEST_DIFFERENCE      : RULE                 : RULE-21-1PACKAGE              : Preprocessor4COMPILE_PASS         : TrueQUERY                : MemcmpOnInappropriateEssentialTypeArgsCOMPILE_ERROR_OUTPUT : SUITE                : MISRA-C-2012TEST_PASS            : TrueTEST_DIFFERENCE      : RULE                 : RULE-21-16PACKAGE              : EssentialTypes

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

PACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-1QUERY                : PointerTypeOnLogicalOperatorPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-1QUERY                : OperandsOfAnInappropriateEssentialTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-2QUERY                : AdditionSubtractionOnEssentiallyCharTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-3QUERY                : AssignmentOfIncompatibleEssentialTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-4QUERY                : OperandsWithMismatchedEssentialTypeCategoryPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-5QUERY                : InappropriateEssentialTypeCastPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-6QUERY                : AssignmentToWiderEssentialTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-7QUERY                : ImplicitConversionOfCompositeExpressionPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-10-8QUERY                : InappropriateCastOfCompositeExpressionPACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-14-1QUERY                : LoopOverEssentiallyFloatTypePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-21-14QUERY                : MemcmpUsedToCompareNullTerminatedStringsPACKAGE              : Preprocessor4SUITE                : MISRA-C-2012COMPILE_PASS         : FalseCOMPILE_ERROR_OUTPUT : [2023-03-09 00:07:56] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c:4:9: error: 'defined' cannot be used as a macro name                       [2023-03-09 00:07:56] [build-stderr] #define defined // NON_COMPLIANT                       [2023-03-09 00:07:56] [build-stderr]         ^                       [2023-03-09 00:07:56] [build-stderr] 1 error generated.                       [2023-03-09 00:07:56] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, clang, -fsyntax-only, -std=c11, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/c/misra/test/rules/RULE-21-1/test.c])                       TEST_DIFFERENCE      : TEST_PASS            : FalseRULE                 : RULE-21-1QUERY                : DefineAndUndefUsedOnReservedIdentifierOrMacroNamePACKAGE              : EssentialTypesSUITE                : MISRA-C-2012COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : TEST_DIFFERENCE      : TEST_PASS            : TrueRULE                 : RULE-21-16QUERY                : MemcmpOnInappropriateEssentialTypeArgs

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

@lcarteylcartey added this pull request to themerge queueMar 9, 2023
Merged via the queue intomain with commit07a3b16Mar 9, 2023
@lcarteylcartey deleted the lcartey/essential-types branchMarch 9, 2023 01:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@jsingletjsingletjsinglet approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@lcartey@jsinglet

[8]ページ先頭

©2009-2025 Movatter.jp