Commit 2defa13
committed
docs: fix stale plugin-authoring guide and dataset layout in spec
The "how to add a check" steps in docs/spec.md referenced a
`Y2k38CheckBase.h` with `y2k38::MatcherCallback<T>` / `y2k38::ActionBase<D>`
templates that do not exist on this branch — that abstraction was reverted
earlier in this PR (72e15ca). A contributor following the spec could not
build. Rewrite the steps to match the real pattern: a per-check namespace
defining a matcher, a `MatcherCallback`, and a free `addMatcher(MatchFinder*)`
registered from `Y2k38AllAction::CreateASTConsumer`.
Also correct the dataset tree, which listed a `whitelist/` directory that
does not exist and omitted the actual `downcast-bug/` directory. Keep the
whitelist convention as documented guidance for new checks.
Add `just setup-dev` to the CLAUDE.md build section for parity with README.
https://claude.ai/code/session_01DAu2VdTJ6vFYtMw8R1iV7C1 parent 1cc7041 commit 2defa13
2 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
133 | | - | |
134 | | - | |
| 138 | + | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
| |||
0 commit comments