[clang] [libclang/python] Change all global variables to snake case (PR #132378)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 21 17:14:21 PDT 2025
================
@@ -10,7 +10,7 @@
import sys
from pathlib import Path
-kInputsDir = os.path.join(os.path.dirname(__file__), "INPUTS")
+k_inputs_dir = os.path.join(os.path.dirname(__file__), "INPUTS")
----------------
Endilll wrote:
Can you also drop `k_` prefix? According to PEP 8, naming convention for global variables is the same as for functions, and we don't prefix functions with `k_`.
https://github.com/llvm/llvm-project/pull/132378
More information about the cfe-commits
mailing list