Piotr Zegar
11a411a49b
Revert "[clang-tidy][NFC] Remove duplicated code"
...
This reverts commit b6f6be4b500ff64c23a5103ac3311cb74519542f.
2024-03-31 15:06:49 +00:00
Piotr Zegar
b6f6be4b50
[clang-tidy][NFC] Remove duplicated code
...
Remove duplicated matchers by moving some of them to
utils/Matchers.h. Add some anonymous namespaces and
renamed some code to avoid ODR issues.
2024-03-31 14:58:27 +00:00
Carlos Galvez
4718da5060
[clang-tidy][NFC] Use C++17 nested namespaces in clang-tidy headers
...
We forgot to apply the change to headers in the previous patch,
due to missing "-header-filter" in the run-clang-tidy invocation.
Differential Revision: https://reviews.llvm.org/D142307
2023-01-23 21:23:16 +00:00
Kazu Hirata
f71ffd3b73
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC)
...
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to clean up the "using" declarations, #include
"llvm/ADT/Optional.h", etc.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-07 20:19:42 -08:00
Kazu Hirata
71f557355d
[clang-tools-extra] Add #include <optional> (NFC)
...
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with
std::optional.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-07 20:02:20 -08:00
Richard
6e566bc552
[clang-tidy] Organize check doc files into subdirectories (NFC)
...
- Rename doc files to subdirs by module
- Update release notes and check list to use subdirs
- Update add_new_check.py to handle doc subdirs
Differential Revision: https://reviews.llvm.org/D126495
2022-06-16 16:06:20 -06:00
Abel Kocsis
8d288a0668
[clang-tidy] Add bugprone-bad-signal-to-kill-thread check and its alias cert-pos44-c
2019-11-11 17:47:14 +01:00
Abel Kocsis
8cec7e0208
Revert "[clang-tidy] Add bugprone-bad-signal-to-kill-thread checker and alias cert-pos44-c"
...
This reverts commit 4edf0cb0e03e31d468979d0d7dec08bd9f4f8204.
2019-11-11 17:34:04 +01:00
Abel Kocsis
4edf0cb0e0
[clang-tidy] Add bugprone-bad-signal-to-kill-thread checker and alias cert-pos44-c
2019-11-11 17:26:44 +01:00