Skip to content

Commit ea3cf55

Browse files
Updating clang-tidy config to unittest.cc passes
1 parent e854ec5 commit ea3cf55

4 files changed

Lines changed: 67 additions & 52 deletions

File tree

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Checks: 'clang-diagnostic-*,clang-analyzer-*,cert-*,cppcoreguidelines-*,google-*,llvm-*,misc-*,modernize-*,performance-*,portability-*,readility-*,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-llvm-header-guard,-llvm-include-order,-clang-diagnostic-missing-braces,-misc-misplaced-widening-cast'
33
WarningsAsErrors: ''
4-
HeaderFilterRegex: '.*'
4+
HeaderFilterRegex: '[^/]*'
55
AnalyzeTemporaryDtors: false
66
User: reed
77
CheckOptions:

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ clean:
2424
SOFOSCC=sofos.cc main.cc
2525
UNITCC=sofos.cc unittest.cc
2626
SOFOSHPP=sofos.hpp vcf.hpp
27-
FORMATFILES=$(SOFOSCC) $(SOFOSHPP) test_utils.hpp
27+
FORMATFILES=$(SOFOSCC) $(SOFOSHPP) unittest.cc
28+
TIDYFILES=$(SOFOSCC) unittest.cc
2829

2930
sofos: $(SOFOSCC) $(SOFOSHPP)
3031
$(CXX) $(CXXFLAGS) $(SOFOSFLAGS) -o $@ $(SOFOSCC)
@@ -65,10 +66,10 @@ test_codecov: sofos_coverage unittest_coverage
6566
bash -c 'bash <(curl -s https://codecov.io/bash)'
6667

6768
tidy:
68-
$(CLANGTIDY) $(SOFOSCC) -- $(CXXFLAGS) $(SOFOSFLAGS) -Wall
69+
$(CLANGTIDY) $(TIDYFILES) -- $(CXXFLAGS) $(SOFOSFLAGS) -Wall
6970

7071
format:
71-
$(CLANGFORMAT) -i $(SOFOSCC) $(SOFOSHPP) $(SOFOSTESTHPP)
72+
$(CLANGFORMAT) -i $(SOFOSCC) $(SOFOSHPP) $(FORMATFILES)
7273

7374
test_format:
7475
@echo 'Testing for code format issues...'
File renamed without changes.

0 commit comments

Comments
 (0)