[clang] [libclang/python] Add equality comparison operators for File (PR #130383)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 20 08:07:37 PDT 2025
================
@@ -1,12 +1,13 @@
import os
-from clang.cindex import Config, File, Index
+from clang.cindex import Config, File, Index, TranslationUnit
if "CLANG_LIBRARY_PATH" in os.environ:
Config.set_library_path(os.environ["CLANG_LIBRARY_PATH"])
import unittest
+kInputsDir = os.path.join(os.path.dirname(__file__), "INPUTS")
----------------
Endilll wrote:
[PEP 8][https://peps.python.org/pep-0008/#global-variable-names], which we [follow](https://llvm.org/docs/CodingStandards.html#python-version-and-source-code-formatting), says that global variable names should be named in the same way as functions, which are `snake_case` in this file.
https://github.com/llvm/llvm-project/pull/130383
More information about the cfe-commits
mailing list