Skip to content

Commit

Permalink
Merge pull request #1174 from slaclab/cpplinter
Browse files Browse the repository at this point in the history
General C/C++ Updates
  • Loading branch information
ruck314 committed Jul 10, 2024
2 parents abb9eb7 + b821b6b commit 15a7282
Show file tree
Hide file tree
Showing 36 changed files with 1,463 additions and 120,081 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/surf_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
python -m compileall -f python/ scripts/ tests/
flake8 --count python/ scripts/ tests/
- name: C/C++ Linter
run: |
find . -name '*.h' -o -name '*.cpp' -o -name '*.c' | xargs cpplint
- name: VHDL Regression Testing
run: |
./ghdl-build.sh > /dev/null 2>&1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Compiled source files
*.o
*.so
*.pyc
*.db
*.swp
Expand Down
22 changes: 22 additions & 0 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#######################################################
# CPPLINT.cfg
#######################################################

# Increase the max number of characters on a given line
linelength=250

# List of filters to apply
filter=-legal/copyright

# Disable the build/header_guard check
# Note changing header guard has wrong style
# E.g. from __SSI_PRINTF__ to INCLUDE_ROGUE_UTILITIES_MODULE_H_
filter=-build/header_guard

# Disable the readability/casting check
# Because we are using C code
filter=-readability/casting

# Disable the build/include_subdir check
# Because headers are organized in same directory and C code
filter=-build/include_subdir
Loading

0 comments on commit 15a7282

Please sign in to comment.