Skip to content

Commit ac06fe8

Browse files
Remove duplicate name/rule text
1 parent ee92f89 commit ac06fe8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cpp/misra/src/rules/RULE-6-2-3/DuplicateTypeDefinitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @id cpp/misra/duplicate-type-definitions
3-
* @name RULE-6-2-3: RULE-6-2-3: Duplicate type definitions across files
3+
* @name RULE-6-2-3: Duplicate type definitions across files
44
* @description Defining a type with the same fully qualified name in multiple files increases the
55
* risk of ODR violations and undefined behavior.
66
* @kind problem

cpp/misra/src/rules/RULE-6-2-3/TemplateSpecializationWrongLocation.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @id cpp/misra/template-specialization-wrong-location
3-
* @name RULE-6-2-3: RULE-6-2-3: Template specializations in wrong location
3+
* @name RULE-6-2-3: Template specializations in wrong location
44
* @description Template specializations must be defined in the same file as the primary template or
55
* where a specialized type is defined to ensure visibility and avoid ODR violations.
66
* @kind problem

rule_packages/cpp/Declarations8.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{
2727
"description": "Template specializations must be defined in the same file as the primary template or where a specialized type is defined to ensure visibility and avoid ODR violations.",
2828
"kind": "problem",
29-
"name": "RULE-6-2-3: Template specializations in wrong location",
29+
"name": "Template specializations in wrong location",
3030
"precision": "very-high",
3131
"severity": "error",
3232
"short_name": "TemplateSpecializationWrongLocation",
@@ -39,7 +39,7 @@
3939
{
4040
"description": "Defining a type with the same fully qualified name in multiple files increases the risk of ODR violations and undefined behavior.",
4141
"kind": "problem",
42-
"name": "RULE-6-2-3: Duplicate type definitions across files",
42+
"name": "Duplicate type definitions across files",
4343
"precision": "very-high",
4444
"severity": "error",
4545
"short_name": "DuplicateTypeDefinitions",

0 commit comments

Comments
 (0)