[PATCH] D52135: [Clang-Tidy: modernize] Fix for modernize-redundant-void-arg: complains about variable cast to void

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 16 09:18:22 PDT 2018


JonasToth added a comment.

Could you please add a test, to show that non-templated function are still diagnosed correctly?
The `isInstantiated` would only apply to templated functions.

Why is the cast to void diagnosed anyway? It is not an argument nor is it used in a function context. Do you have an explaination for that?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52135





More information about the cfe-commits mailing list