Skip to content

Commit ab58348

Browse files
committed
prepare to test branch
1 parent 1202cbe commit ab58348

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

.github/workflows/cpp-lint-package.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
clang-version: ['7', '8', '9','10', '11', '12', '13', '14', '15', '16', '17']
17+
clang-version: ['10', '11', '12', '13', '14', '15', '16', '17']
1818
repo: ['cpp-linter/cpp-linter']
1919
branch: ['${{ inputs.branch }}']
2020
fail-fast: false
@@ -62,10 +62,11 @@ jobs:
6262
-i=build
6363
-p=build
6464
-V=${{ runner.temp }}/llvm
65-
-f=false
6665
--extra-arg="-std=c++14 -Wall"
67-
--thread-comments=${{ matrix.clang-version == '12' }}
68-
-a=${{ matrix.clang-version == '12' }}
66+
--file-annotations=${{ matrix.clang-version == '16' }}
67+
--thread-comments=${{ matrix.clang-version == '16' }}
68+
--tidy-review=${{ matrix.clang-version == '16' }}
69+
--format-review=${{ matrix.clang-version == '16' }}
6970
7071
- name: Fail fast?!
7172
if: steps.linter.outputs.checks-failed > 0

src/demo.cpp

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
/** This is a very ugly test code (doomed to fail linting) */
22
#include "demo.hpp"
3-
#include <cstdio>
4-
#include <cstddef>
3+
#include <stdio.h>
54

6-
// using size_t from cstddef
7-
size_t dummyFunc(size_t i) { return i; }
85

9-
int main()
10-
{
11-
for (;;)
12-
break;
6+
7+
8+
int main(){
9+
10+
for (;;) break;
11+
1312

1413
printf("Hello world!\n");
1514

16-
return 0;
17-
}
15+
16+
17+
18+
return 0;}

src/demo.hpp

+3-8
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
class Dummy {
66
char* useless;
77
int numb;
8+
Dummy() :numb(0), useless("\0"){}
89

910
public:
10-
void *not_usefull(char *str){
11-
useless = str;
12-
return 0;
13-
}
11+
void *not_useful(char *str){useless = str;}
1412
};
1513

1614

@@ -28,14 +26,11 @@ class Dummy {
2826

2927

3028

31-
32-
33-
34-
3529

3630

3731
struct LongDiff
3832
{
33+
3934
long diff;
4035

4136
};

0 commit comments

Comments
 (0)