INNER CODE UNIT · Python

FormatterError

wasm3/wasm3 · extra/format.py:172

class FormatterError(Exception):
    """A formatter could not be run, or ran and failed. Reported by main()."""


class CFormatter:
    """The C and the headers: clang-format, with the wasm3 conventions put back.

    Everything the conventions are made of -- the patterns that recognise them, the
    columns they are kept in, the passes that hide them from clang-format and restore
    them -- belongs to this class and to nothing else. See the module docstring for
    what the three of them are and why clang-format cannot express them.
    """

    NAME = "clang-format"
    SUFFIXES = (".c", ".h")
    MAJOR = 23  # the release the tree is formatted with; see the module docstring

    CONFIG = os.path.join(ROOT, ".clang-format")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…