alexfh added inline comments.
================ Comment at: clang-tidy/readability/MisleadingIndentationCheck.cpp:40-42 + for (auto Iter = ChainedIfs.find(If); Iter != ChainedIfs.end(); + Iter = ChainedIfs.find(Iter->second)) + IfLoc = Iter->second->getIfLoc(); ---------------- alexfh wrote: > Can you just use the parent map to get the previous `if` in the chain? `ASTContext::getParents` is the interface to it. https://reviews.llvm.org/D30841 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits