-
C.21 is missing an exception for the copy-and-swap idiom. It's perfectly safe (and considered idiomatic by many) for resource management to write:
```cpp
T& operator=(T) noexcept { /* ... */ }
```
…
-
| | |
| --- | --- |
| Bugzilla Link | [34150](https://llvm.org/bz34150) |
| Version | unspecified |
| OS | Linux |
## Extended Description
On Ubuntu trusty
We could try to workaround the crash
/u…
-
From clang-tidy:
```
/home/tzn/.cache/bazel/_bazel_tzn/dab993785bc8bd52220ddfe5340ed840/sandbox/linux-sandbox/5480/execroot/oak/cc/crypto/hpke/sender_context.h:33:7: error: class 'SenderContext' d…
-
- [ ] Add more clang-tidy checks
- [ ] Run on Linux and macOS
- [ ] Add cpplint
sunby updated
9 months ago
-
With https://github.com/nlohmann/json/pull/3703, all Clang and GCC compilers *except* g++-4.8 are used from the official images for Clang/GCC. Furthermore, the latest CMakeversion is used via `lukka/g…
-
C++ Core Guidelines, September 23, 2022, item [ES.23: Prefer the `{}`-initializer syntax](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-list) says:
> Prefer {}. The rules for {} …
-
- Issue Type: `Performance`
- Extension Name: `clang-tidy`
- Extension Version: `0.5.1`
- OS Version: `Windows_NT x64 10.0.19041`
- VSCode version: `1.51.1`
:warning: Make sure to **attach** th…
-
`REQUIRE` from [doctest](https://github.com/doctest/doctest) is currently not supported
```cpp
TEST_CASE("foo")
{
REQUIRE(opt.has_value());
use(*opt); // will warn "Unchecked access to …
hg-zt updated
9 months ago
-
```cpp
int main()
{
for (int i = 0; i < 3; i++)
for (int j = 0; j < 3; j++)
{}
(void)42;
}
```
Analyzing with `clang-tidy 1.cpp -checks=readability-misleading-indentation --` …
-
I find a false positive with clang-tidy's readability-non-const-parameter, if the access to the function parameter is hidden behind a template.
To reproduce:
```c++
#include
constexpr size_t…