[llvm] code-format: Improve the code-format-helper to be able to run as a git hook (PR #73957)

Tobias Hieta via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 06:39:31 PST 2023


================
@@ -31,9 +45,10 @@ def comment_tag(self) -> str:
     def instructions(self) -> str:
         raise NotImplementedError()
 
-    def format_run(
-        self, changed_files: list[str], args: argparse.Namespace
-    ) -> str | None:
+    def has_tool(self) -> bool:
+        raise NotImplementedError()
+
+    def format_run(self, changed_files: list[str], args: FormatArgs) -> str | None:
----------------
tru wrote:

Hmm. Good point, I just used whatever was installed for me locally. I will try with the supported LLVM version to make sure.

https://github.com/llvm/llvm-project/pull/73957


More information about the llvm-commits mailing list