Skip to content
Snippets Groups Projects
Select Git revision
  • 3e1a5c10c5bf0a38c2ed3b9986b43b8cb8227b2f
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

objmap.c

Blame
  • code-style.sh 440 B
    #!/bin/bash
    set -e
    
    # Check tools
    if ! command -v clang-format >/dev/null 2>&1; then
        echo "$0: requires clang-format." >&2
        exit 127
    fi
    
    if ! command -v python3 >/dev/null 2>&1; then
        echo "$0: requires python3." >&2
        exit 127
    fi
    
    script_dir="$(dirname "$0")"
    
    for source_file in "$@"; do
        echo "Formatting $source_file ..."
        clang-format -i "$source_file"
        python3 "$script_dir/fix-multi-decl.py" "$source_file"
    done