- User Since
- Sep 22 2016, 10:30 PM (163 w, 4 d)
Mar 28 2019
Mar 8 2019
Another idea that came to my mind would be to enable this check only for annotated types. So warning for missing field access would be only given for types that have for example [[clang::annotate("value type")]] annotation. Possibly other kinds of checks could be also developed for types that have the given annotation.
I found this checker to be useful in the code base I initially developed it for, but the usage of comparison operators there is pretty much limited to comparing simple aggregate types. It's true that this checker can produce lots of false positives, maybe too much to be included to clang-tidy proper.
Mar 7 2019
The checker gives quite many warnings on LLVM code base. For example, running it for lib/Transforms/Scalar: