[PATCH] D73852: [clang] detect switch fallthrough marked by a comment (PR43465)

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 05:45:50 PST 2020


hans added a comment.

I also jumped when I saw that this now makes certain comments "load bearing". That doesn't seem like a great idea to me.

The warning may be all right for C++ code, which has an attribute to suppress it, but C code does not normally use such attributes, and has no standard syntax for them. I think it would be better if the warning was off by default for C code. Those C projects that wish could opt-in to it and jump through the hoops of applying attributes to silence the warning.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73852/new/

https://reviews.llvm.org/D73852





More information about the cfe-commits mailing list