Eugene.Zelenko added a comment. How about creating CERT alias?
================ Comment at: clang-tidy/readability/IsolateDeclarationCheck.cpp:58 + // number of transformations. + while (Indirections--) { + Start = findPreviousAnyTokenKind(Start, SM, LangOpts, tok::star, tok::amp); ---------------- It'll be better to compare with 0 explicitly. ================ Comment at: clang-tidy/readability/IsolateDeclarationCheck.cpp:145 + // future this should be relaxed and support various kinds of declarations. + VarDecl *FirstDecl = dyn_cast<VarDecl>(*DS->decl_begin()); + ---------------- auto could be used here. ================ Comment at: clang-tidy/readability/IsolateDeclarationCheck.cpp:198 + SourceLocation DeclBegin = Start; + for (auto It = DS->decl_begin(), End = DS->decl_end(); It != End; ++It) { + VarDecl *CurrentDecl = dyn_cast<VarDecl>(*It); ---------------- Will be good idea to use range loop. ================ Comment at: docs/ReleaseNotes.rst:60 +- The 'readability-isolate-decl' check was renamed to :doc:`readability-isolate-declaration + <clang-tidy/checks/readability-isolate-declaration>` ---------------- Do we really need this entry? 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