[clang] Suppress reference to free variable errors (PR #126254)

Ron Gut via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 07:45:42 PST 2025


https://github.com/gutron created https://github.com/llvm/llvm-project/pull/126254

vc-git-program is referenced but not defined -- vc-git provides the definition.

>From 598b1c0df4991b1fb63b54dd358b40103912b80b Mon Sep 17 00:00:00 2001
From: Ron Gut <65685404+gutron at users.noreply.github.com>
Date: Fri, 7 Feb 2025 10:45:13 -0500
Subject: [PATCH] Suppress reference to free variable errors

vc-git-program is referenced but not defined -- vc-git provides the definition.
---
 clang/tools/clang-format/clang-format.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/tools/clang-format/clang-format.el b/clang/tools/clang-format/clang-format.el
index 54ab2e1fd4c6128..b356e1bfa143618 100644
--- a/clang/tools/clang-format/clang-format.el
+++ b/clang/tools/clang-format/clang-format.el
@@ -32,6 +32,7 @@
 
 (require 'cl-lib)
 (require 'xml)
+(require 'vc-git)
 
 (defgroup clang-format nil
   "Format code using clang-format."



More information about the cfe-commits mailing list