Skip to content

Commit

Permalink
Fix up the "format" SCons target.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Rideout committed Aug 11, 2015
1 parent e562915 commit 4e2b70e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AccessModifierOffset: -1
AlignAfterOpenBracket: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: false
AlignTrailingComments: true

AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: true
Expand Down
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AlwaysBuild('test')
Alias('lib', 'build/_heman.so')

additions = ['include/heman.h', 'test/main.c']
exclusions = ['src/noise.c', 'src/noise.h']
exclusions = Glob('src/noise.*')
cfiles = Glob('src/*.c') + Glob('src/*.h') + additions
cfiles = list(set(cfiles) - set(exclusions))
Command('format', cfiles, 'clang-format-3.6 -i $SOURCES')
Expand Down

0 comments on commit 4e2b70e

Please sign in to comment.