Open atrosinenko opened 4 years ago
As I understand warnings were generated for .c files as well (I don't see any .inc D86221 🙈 ). If compiler-rt/lib/builtins/
has own convention than maybe we should add it to exclusions?
I don't see any .inc D86221.
It was D85031 that contain an .inc file and some warnings were already silenced by D85731.
If compiler-rt/lib/builtins/ has own convention than maybe we should add it to exclusions?
It looks like a good idea to me. After all, it should still pass a regular build that will catch obvious mistakes.
When sending a patch for compiler-rt (specifically, its
builtins
library), it is annotated it with lots of inline comments that look irrelevant.An example of such issue: https://reviews.llvm.org/D86221.
To Reproduce Steps to reproduce the behavior:
readability-identifier-naming
warnings for names like__floatunsisf
(these are hardcoded names of compiler support library functions) and single-letter function arguments (such as forfp_t __floatunsisf(su_int a)
- this function is one of those converting integers to floats)Expected behavior 1a. No
readability-identifier-naming
warnings produced for such libraries 1b. ... or they are produced taking into account the specifics of compiler support librariesreadability-identifier-naming
warnings are emitted just as usualNotes Various
*_impl.inc
files are quite common forbuiltins
sources as they make it possible to instantiate lots of identical LibCalls that differ in sizes of types they operate on. These files are usually not self-contained and as such may produce some errors about undefined typefp_t
and so on (these are normally selected based on macroses defined in the topmost C source). While these are not very useful, adding all the*.inc
files to ignore lists may be overkill. When fixing such issue for https://reviews.llvm.org/D85031, I implemented a questionable hack like this https://reviews.llvm.org/D85731. Are there some suggestions on how to silence such warnings the right way so the fix will not be invalidated by clang-tidy updates and so on?Screenshots An example of completely irrelevant warnings: An example of viable but most probably either too strict or mis-configured warning: