Cleanup: spelling in comments (make check_spelling*)
- Back-tick quote math expressions so differentiate them from English. - Use doxygen code blocks for TEX expressions.
This commit is contained in:
@@ -104,7 +104,7 @@ defs_precalc = {
|
||||
import sys
|
||||
|
||||
if 0:
|
||||
# Examples with LLVM as the root dir: `/dsk/src/llvm`.
|
||||
# Examples with LLVM as the root directory: `/dsk/src/llvm`.
|
||||
|
||||
# Path containing `clang/__init__.py`.
|
||||
CLANG_BIND_DIR = "/dsk/src/llvm/tools/clang/bindings/python"
|
||||
|
||||
@@ -157,7 +157,7 @@ def build_info(
|
||||
continue
|
||||
del args_orig
|
||||
|
||||
# join args incase they are not.
|
||||
# Join arguments in case they are not.
|
||||
args_str = " ".join(args)
|
||||
args_str = args_str.replace(" -isystem", " -I")
|
||||
args_str = args_str.replace(" -D ", " -D")
|
||||
@@ -202,7 +202,7 @@ def build_defines_as_source() -> str:
|
||||
'#defines A=B\n#define....'
|
||||
"""
|
||||
import subprocess
|
||||
# works for both gcc and clang
|
||||
# Works for both GCC and CLANG.
|
||||
cmd = (cmake_cache_var_or_exit("CMAKE_C_COMPILER"), "-dM", "-E", "-")
|
||||
process = subprocess.Popen(
|
||||
cmd,
|
||||
@@ -236,7 +236,7 @@ def process_make_non_blocking(proc: subprocess.Popen[Any]) -> subprocess.Popen[A
|
||||
return proc
|
||||
|
||||
|
||||
# could be moved elsewhere!, this just happens to be used by scripts that also
|
||||
# Could be moved elsewhere!, this just happens to be used by scripts that also
|
||||
# use this module.
|
||||
def queue_processes(
|
||||
process_funcs: Sequence[tuple[Callable[..., subprocess.Popen[Any]], tuple[Any, ...]]],
|
||||
@@ -245,7 +245,8 @@ def queue_processes(
|
||||
sleep: float = 0.1,
|
||||
process_finalize: Callable[[subprocess.Popen[Any], bytes, bytes], int | None] | None = None,
|
||||
) -> None:
|
||||
""" Takes a list of function arg pairs, each function must return a process
|
||||
"""
|
||||
Takes a list of function argument pairs, each function must return a process.
|
||||
"""
|
||||
|
||||
if job_total == -1:
|
||||
|
||||
Reference in New Issue
Block a user