Commit fbd3c05
authored
improve github search URL generation (#233)
I had accidentally reverted to a worse github search link URL. This PR
improves the link generation so that a fully-qualified class name +
templates is extracted to the component class names and template names.
E.g.,
https://github.com/search?q=repo%3Allvm%2Fllvm-project+ExpandIfCondition+ExitDataOp+path%3Amlir&type=code
Which produces
<img width="1130" height="579" alt="image"
src="https://github.com/user-attachments/assets/d79ac4cf-16ad-4aa5-ad5a-bc72602493b7"
/>
I can't match the exact line because the classname available to the UI
has the fully-qualified template parameter (with a leading `::mlir`) but
the code has that part implicit. Since I can't know in advance how the
source will use the template parameter, it seems simplest to just have a
conjunction in the query and deal with the slightly imprecise GitHub
search UI.
Co-authored-by: Jeremy Kun <[email protected]>1 parent 7c241cd commit fbd3c05
1 file changed
+44
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
159 | 202 | | |
160 | 203 | | |
161 | 204 | | |
| |||
0 commit comments