diff options
| author | Victor Chernyakin <chernyakin.victor.j@outlook.com> | 2025-08-23 02:34:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-23 02:34:31 -0700 |
| commit | 230b9b2026116766d6fdedb499cc8a1e78b647e5 (patch) | |
| tree | bd76a5d3ee3a3333c00bf8d452abcacb87271c1a /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
| parent | 699f15426faeb673b12d7bd567669194d04a0034 (diff) | |
| download | llvm-230b9b2026116766d6fdedb499cc8a1e78b647e5.zip llvm-230b9b2026116766d6fdedb499cc8a1e78b647e5.tar.gz llvm-230b9b2026116766d6fdedb499cc8a1e78b647e5.tar.bz2 | |
[clang-tidy] Add `-std` argument in `check_clang_tidy.py` for C files (#150791)
Before, the `-std` argument in C tests was simply ignored, and they were
run with whatever Clang defaults to when you don't specify a standard.
The new default is `-std=c99-or-later`. This means a bunch of tests are
suddenly being run in C23 mode, and so need to be adapted to account for
various things:
- `typeof` is changed to `__typeof__`; the non-`__ugly__` spelling is
only available with GNU extensions or C23.
- In C23, `bool` is a keyword, so `typedef foo bool;` is invalid.
- In C23, `f()` means `f(void)`, not "takes arbitrary parameters".
- In C23, K&R-style function definitions are removed.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions
