davidxl added a comment. A separate mode is fine. Buffering the errors and reporting them later is also useful (allowing more context info to be emitted). CHANGES SINCE LAST ACTION https://reviews.llvm.org/D66985/new/ https://reviews.llvm.org/D66985