tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Compilers growing lint-like capabilities, but don't like lint-comments.



Hi,

Over time compilers are starting to performs some checks
normally done by lint, such as warning about fallthrough
cases being implicit.

cpp ignores comments, so they are opting to re-invent
the lint terminology with things like __builtin_noreturn
or [[gnu::fallthrough]].

this means that despite having the required comments, we
need to turn off errors/warnings, which seems undesirable
in the long run. It may spot something lint doesn't.

Would a giant rototill cocinelle patch to convert all
those comments to a macro of our choosing be accepted?


Home | Main Index | Thread Index | Old Index