|
19 | 19 | "scope/system" |
20 | 20 | ], |
21 | 21 | "implementation_scope": { |
22 | | - "description": "This query does not detect duplicated definitions of inline variables.", |
23 | | - "items": [] |
| 22 | + "description": "The implementation of this rule and the implementation of Rule 6.2.1 are heavily related.", |
| 23 | + "items": [ |
| 24 | + "Generally speaking, false positives in Rule 6.2.1 will be true violations of this rule, and such results are not duplicated here.", |
| 25 | + "Our implementation of Rule 6.2.1 detects duplicate definitions of non-inline entities, but excludes all inline functions to avoid false positives.", |
| 26 | + "This query detects duplicate definitions of inline functions.", |
| 27 | + "Note that our definition of Rule 6.2.1 cannot distinguish between inline and non-inline variables, and therefore reports all such duplications even if they are not ODR violations. For the same reason, we do not check inline variable definitions in this query.", |
| 28 | + "This rule contains another query to detect duplicate definitions of types, another case that is excluded by our implementation of Rule 6.2.1." |
| 29 | + ] |
24 | 30 | } |
25 | 31 | }, |
26 | 32 | { |
|
47 | 53 | "correctness", |
48 | 54 | "maintainability", |
49 | 55 | "scope/system" |
50 | | - ] |
| 56 | + ], |
| 57 | + "implementation_scope": { |
| 58 | + "description": "The implementation of this rule and the implementation of Rule 6.2.1 are heavily related.", |
| 59 | + "items": [ |
| 60 | + "Generally speaking, false positives in Rule 6.2.1 will be true violations of this rule, and such results are not duplicated here.", |
| 61 | + "Our implementation of Rule 6.2.1 excludes analysis of duplicate type definitions to avoid false positives, even for cases that are true ODR violations.", |
| 62 | + "This query detects duplicate definitions of types.", |
| 63 | + "This rule contains another query to detect duplicate definitions of inline functions, another case that is excluded by our implementation of Rule 6.2.1." |
| 64 | + ] |
| 65 | + } |
51 | 66 | } |
52 | 67 | ], |
53 | 68 | "title": "The source code used to implement an entity shall appear only once" |
|
0 commit comments