Skip to content

Add MISRA C++ 2023 to release testing and automation #651

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/PSCodingStandards/Config.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$AVAILABLE_SUITES = @("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C")
$AVAILABLE_SUITES = @("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C", "MISRA-C++-2023")
$AVAILABLE_LANGUAGES = @("c", "cpp")
3 changes: 3 additions & 0 deletions scripts/PSCodingStandards/Get-TestDirectory.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ function Get-TestDirectory {
elseif ($RuleObject.__memberof_suite -eq "MISRA-C-2012") {
$standardString = "misra"
}
elseif ($RuleObject.__memberof_suite -eq "MISRA-C++-2023") {
$standardString = "misra"
}
else {
throw "Unknown standard $($RuleObject.__memberof_suite)"
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/matrix_testing/CreateMatrixTestReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ param(
$Configuration,

# For a suite, the suites we support. Valid values are 'CERT-C++' and
# 'AUTOSAR' and MISRA-C-2012 and CERT-C
# 'AUTOSAR' and MISRA-C-2012, MISRA-C++-2023 and CERT-C
[Parameter(Mandatory, ParameterSetName = 'Suite')]
[ValidateSet("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C")]
[ValidateSet("CERT-C++", "AUTOSAR", "MISRA-C-2012", "CERT-C", "MISRA-C++-2023")]
[string]
$SuiteName,

Expand Down
2 changes: 1 addition & 1 deletion scripts/release/create_supported_rules_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

repo_root = Path(__file__).parent.parent.parent

rules_covered = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}}
rules_covered = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}, "MISRA-C++-2023" : {},}

# Iterate over rule packages
for language_name in ["cpp", "c"]:
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/generate_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def transform_legacy_rule_path(p):
diff_from_last_release = latest_release_commit.diff(head_commit)

# Store a mapping from standard -> rules with new queries -> new queries for those rules
new_rules = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}}
new_rules = {"AUTOSAR" : {}, "CERT-C++" : {}, "MISRA-C-2012" : {}, "CERT-C" : {}, "MISRA-C++-2023" : {}}
# Store the text of the newly added change notes
change_notes = []
# Store the names of the rule packages with new queries
Expand Down
Loading