kbobyrev added a comment.

Also, regarding error handling and `llvm::Option` vs `llvm::Expected`: I think 
the case where the check most likely wouldn't be able to provide useful 
diagnostics and perform enough analysis is when there are macro expansions 
within inspected statement `SourceRange`. It might make sense to completely 
disable it in this case both because it's hard to do anything about the range 
transformation and because it seems to be hard to analyze this case. E.g. if 
the whole statement is expanded from a single macro and then the check would 
report on every macro usage (while the actual problem is in the macro itself). 
I don't know whether the check should support macros at all, it might make 
sense to mention this in the documentation and add few tests if we decide to go 
this way.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D51949



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to