Open Quuxplusone opened 6 years ago
Attached ldfile.c
(282 bytes, text/x-csrc): Example of always-true false positive with calls to a non-pure function
Issue is reproducable in Clang-Tidy 6.0.0
Still there in Clang-Tidy 7.0.0
Reproduced with Clang-Tidy 9.0.1
Same thing for Clang-Tidy 10.
Godbolt example: https://godbolt.org/z/w7PggB
Reproduced with Clang-Tidy 11.0.0: https://godbolt.org/z/6nWMMa
Reproduced with Clang-Tidy 13.0.0: https://godbolt.org/z/s5zcrzqhs
Reproduced with Clang-Tidy 13.0.0: https://godbolt.org/z/s5zcrzqhs
ldfile.c
(282 bytes, text/x-csrc)