[PATCH] D25606: alpha.core.UnreachableCode - don't warn about unreachable code inside macro

Anna Zaks via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 10:21:31 PDT 2016


zaks.anna added a comment.

We should pattern match for this specific macro pattern (ex: do{...}while(0) ) instead of suppressing all warnings coming from macros. Maybe we could use the same heuristic as -Wunreachable-code-return compiler warning?


Repository:
  rL LLVM

https://reviews.llvm.org/D25606





More information about the cfe-commits mailing list