Commit 1263d08
committed
A7-3-1: Ignore order of using and decl
The filter on order between overriding declaration and using was
problematic because:
1. It produced a bad join order related to start lines.
2. It did not check if they were in the same file.
3. It used the wrong declaration - the order of the overriding
declaration and the using declaration doesn't matter.
I think the intention was to confirm that the hidden declaration
appeared before the using declaration (so that it was in scope), but
errors of this kind would be identified by the
DefinitionNotConsideredForUnqualifiedLookup.ql query, so there's no
need to factor that in here.1 parent 46e5eba commit 1263d08
File tree
2 files changed
+19
-3
lines changed- cpp/autosar
- src/rules/A7-3-1
- test/rules/A7-3-1
2 files changed
+19
-3
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
0 commit comments