[PATCH] D51949: [clang-tidy] new check 'readability-isolate-declaration'
Alexander Zaitsev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 29 12:29:10 PDT 2018
ZaMaZaN4iK 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)
----------------
Mark `DeclCount` as const
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D51949
More information about the cfe-commits
mailing list