[PATCH] D119481: run-clang-tidy: Fix infinite loop on windows

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 21 09:23:24 PST 2022


JonasToth accepted this revision.
JonasToth added a comment.
This revision is now accepted and ready to land.

LGTM with a small nit



================
Comment at: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py:69
   while not os.path.isfile(os.path.join(result, path)):
-    if os.path.realpath(result) == '/':
+    parent = os.path.dirname(result)    
+    if result == parent:
----------------
please delete the whitespace at the end of the line


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119481/new/

https://reviews.llvm.org/D119481



More information about the cfe-commits mailing list