Skip to content

Commit

Permalink
Add 'make format' target
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Feb 21, 2019
1 parent 76581a1 commit b372eb4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
Language: Cpp
BasedOnStyle: LLVM
AlignEscapedNewlinesLeft: true
BraceWrapping:
AfterClass: true
AfterFunction: true
ColumnLimit: 500
IndentWidth: 4
ObjCBlockIndentWidth: 4
TabWidth: 4
UseTab: Never
NamespaceIndentation: All
...

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ dump978: dump978_main.o socket_output.o message_dispatch.o fec.o libs/fec/init_r
faup978: faup978_main.o socket_input.o uat_message.o track.o faup978_reporter.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)

format:
clang-format -style=file -i *.cc *.h

clean:
rm -f *.o fec/*.o dump978 faup978

0 comments on commit b372eb4

Please sign in to comment.