Skip to content

make astyle #5

Description

@Lunderberg

It would be pretty convenient to be able to automatically format all code present in the project.

  • New variable in the default.inc, ASTYLE_SPEC. This points to a text file containing all command-line arguments to be passed to astyle.
  • New phony target, "astyle". This is present only if ASTYLE_SPEC is non-empty. This calls astyle on all source files within the project.
  • New variable in a library's Makefile.inc, LIBRARY_ASTYLE_SPEC. If set, "make astyle" will also format code within the library. If unset, library code will not be reformatted. Can be set to $(ASTYLE_SPEC) to use the project's specification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions