[PATCH] D51949: [clang-tidy] new check 'readability-isolate-declaration'

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 31 06:49:03 PDT 2018


JonasToth marked an inline comment as done.
JonasToth added inline comments.


================
Comment at: clang-tidy/readability/IsolateDeclarationCheck.cpp:119
+           const LangOptions &LangOpts) {
+  std::size_t DeclCount = std::distance(DS->decl_begin(), DS->decl_end());
+  if (DeclCount < 2)
----------------
ZaMaZaN4iK wrote:
> Mark `DeclCount` as const
as `DeclCount` is a value, LLVM style does not mark it as const, only pointers or references.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D51949





More information about the cfe-commits mailing list