alexfh requested changes to this revision.
alexfh added a comment.
This revision now requires changes to proceed.

Thank you for the fix! One comment inline.



================
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();
----------------
Can you just use the parent map to get the previous `if` in the chain?


https://reviews.llvm.org/D30841



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to