[PATCH] D36672: [clang-tidy] readability-non-const-parameter: fixit on all function declarations

Anders Rönnholm via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 8 05:48:10 PDT 2017


AndersRonnholm marked 2 inline comments as done.
AndersRonnholm added inline comments.


================
Comment at: clang-tidy/readability/NonConstParameterCheck.cpp:147
+    if (const auto *Parent = Par->getParentFunctionOrMethod()) {
+      if (const auto *F = dyn_cast<FunctionDecl>(Parent)) {
+        const auto ParDecl =
----------------
aaron.ballman wrote:
> What if the parent is an `ObjCMethodDecl` instead?
I don't think this checker handles objective-c


Repository:
  rL LLVM

https://reviews.llvm.org/D36672





More information about the cfe-commits mailing list