Commit 47da2e8
[Benchmark] Fix warnings around usage of __COUNTER__ (llvm#184524)
Premerge CI is currently failing with the following after the update to
clang v22:
```
/home/gha/llvm-project/clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp:92:1: error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
92 | BENCHMARK(dexQueries);
| ^
```
Some original work was done around this in
df1d786, which was then done in
upstream Google benchmark in
google/benchmark@d8db2f9.
The original work done in the patch implementing this feature doesn't
seem to account for as many cases as the upstream patch does. This patch
reverts the diff in df1d786 and applies
the applicable hunks from the upstream patch.1 parent aeb2385 commit 47da2e8
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1459 | 1459 | | |
1460 | 1460 | | |
1461 | 1461 | | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1462 | 1475 | | |
1463 | 1476 | | |
1464 | 1477 | | |
| 1478 | + | |
1465 | 1479 | | |
1466 | 1480 | | |
1467 | 1481 | | |
1468 | 1482 | | |
1469 | 1483 | | |
| 1484 | + | |
1470 | 1485 | | |
1471 | 1486 | | |
1472 | 1487 | | |
| |||
1485 | 1500 | | |
1486 | 1501 | | |
1487 | 1502 | | |
| 1503 | + | |
1488 | 1504 | | |
1489 | | - | |
| 1505 | + | |
1490 | 1506 | | |
1491 | 1507 | | |
1492 | 1508 | | |
| |||
0 commit comments