[clang-tools-extra] [clang-tidy] Adding note of implicit initialization to 'bugprone-random-generator-seed' (PR #194613)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 06:18:01 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE LINT COMMENT: clang-tidy-->


:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

```bash

git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/bugprone/RandomGeneratorSeedCheck.cpp clang-tools-extra/clang-tidy/bugprone/RandomGeneratorSeedCheck.h |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py   -path build -p1 -quiet
```

</details>

<details>
<summary>
View the output from clang-tidy here.
</summary>

```
clang-tools-extra/clang-tidy/bugprone/RandomGeneratorSeedCheck.cpp:22:3: warning: variable 'Parents' of type 'clang::DynTypedNodeList' can be declared 'const' [misc-const-correctness]
   22 |   clang::DynTypedNodeList Parents =
      |   ^
      |                           const
```

</details>


https://github.com/llvm/llvm-project/pull/194613


More information about the cfe-commits mailing list