llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.15k stars 12.03k forks source link

run-clang-tidy.py applies fix lots of times #41118

Open llvmbot opened 5 years ago

llvmbot commented 5 years ago
Bugzilla Link 41773
Version unspecified
OS Windows NT
Reporter LLVM Bugzilla Contributor

Extended Description

Related to bug #​26020, I ran

run-clang-tidy.py [...] -jN -fix -checks='-*,modernize-use-override,modernize-use-noexcept'

This resulted in changes to my code like:

Oddly, while override appears lots of times, the noexcept check managed to work somehow - even though the diagnostic for some throw() --> noexcept replacement appears multiple times, the diff happens once (as opposed to ending up with noexcepttttt).

StephanOostveen commented 1 year ago

Also occurs on Fedora with clang 15.0.7 with modernize-use-nodiscard