Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test new pr review #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
Language: Cpp
BasedOnStyle: WebKit
BasedOnStyle: WebKit
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,4 @@ CheckOptions:
value: '1'
- key: readability-uppercase-literal-suffix.NewSuffixes
value: ''
...
14 changes: 7 additions & 7 deletions .github/workflows/cpp-lint-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: mkdir build && cmake -Bbuild src

- name: Run linter as action
uses: cpp-linter/cpp-linter-action@latest
uses: cpp-linter/cpp-linter-action@main
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -42,17 +42,17 @@ jobs:
# to ignore all build folder contents
ignore: build
database: build
verbosity: 9
verbosity: debug
version: ${{ matrix.clang-version }}
thread-comments: ${{ matrix.clang-version == '12' }}
file-annotations: ${{ matrix.clang-version == '12' }}
thread-comments: ${{ matrix.clang-version == '16' }}
file-annotations: ${{ matrix.clang-version == '16' }}
extra-args: -std=c++14 -Wall

- name: Fail fast?!
# if: steps.linter.outputs.checks-failed > 0
run: |
echo "some linter checks failed"
echo "${{ steps.linter.outputs.checks-failed }}"
echo "${{ env.checks-failed }}"
echo "checks-failed: ${{ steps.linter.outputs.checks-failed }}"
echo "clang-tidy-checks-failed: ${{ steps.linter.outputs.clang-tidy-checks-failed }}"
echo "clang-format-checks-failed: ${{ steps.linter.outputs.clang-format-checks-failed }}"
# for actual deployment
# run: exit 1
13 changes: 10 additions & 3 deletions .github/workflows/cpp-lint-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
inputs:
branch:
description: 'which branch to test'
default: 'main'
default: 'hide-reuse-pr-reviews'
required: true
pull_request:

jobs:
cpp-linter:
Expand All @@ -16,7 +17,8 @@ jobs:
matrix:
clang-version: ['7', '8', '9','10', '11', '12', '13', '14', '15', '16', '17']
repo: ['cpp-linter/cpp-linter']
branch: ['${{ inputs.branch }}']
branch:
- ${{ github.event_name == 'workflow_dispatch' && inputs.branch || 'hide-reuse-pr-reviews' }}
fail-fast: false

steps:
Expand Down Expand Up @@ -66,9 +68,14 @@ jobs:
--extra-arg="-std=c++14 -Wall"
--thread-comments=${{ matrix.clang-version == '17' && 'update' }}
-a=${{ matrix.clang-version == '17' }}
--tidy-review=${{ matrix.clang-version == '17' }}
--format-review=${{ matrix.clang-version == '17' }}

- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
run: echo "Some files failed the linting checks!"
run: |
echo "checks-failed: ${{ steps.linter.outputs.checks-failed }}"
echo "clang-tidy-checks-failed: ${{ steps.linter.outputs.clang-tidy-checks-failed }}"
echo "clang-format-checks-failed: ${{ steps.linter.outputs.clang-format-checks-failed }}"
# for actual deployment
# run: exit 1
21 changes: 11 additions & 10 deletions src/demo.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/** This is a very ugly test code (doomed to fail linting) */

Check notice on line 1 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

Run clang-format on src/demo.cpp

File src/demo.cpp does not conform to Custom style guidelines. (lines 3, 8, 10, 13, 18)

Check notice on line 1 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

Run clang-format on src/demo.cpp

File src/demo.cpp does not conform to Custom style guidelines. (lines 3, 8, 10, 13, 18)

Check notice on line 1 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

Run clang-format on src/demo.cpp

File src/demo.cpp does not conform to Custom style guidelines. (lines 3, 8, 10, 13, 18)
#include "demo.hpp"

Check warning on line 2 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:2:1 [misc-include-cleaner]

included header demo.hpp is not used directly

Check warning on line 2 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:2:1 [misc-include-cleaner]

included header demo.hpp is not used directly

Check warning on line 2 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:2:1 [misc-include-cleaner]

included header demo.hpp is not used directly
#include <cstdio>
#include <cstddef>
#include <stdio.h>

Check warning on line 3 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:3:10 [modernize-deprecated-headers]

inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead

Check warning on line 3 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:3:10 [modernize-deprecated-headers]

inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead

Check warning on line 3 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:3:10 [modernize-deprecated-headers]

inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead
Comment on lines 2 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
#include "demo.hpp"
#include <cstdio>
#include <cstddef>
#include <stdio.h>
#include <cstdio>

Comment on lines 2 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
#include "demo.hpp"
#include <cstdio>
#include <cstddef>
#include <stdio.h>
#include <cstdio>

Comment on lines 2 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
#include "demo.hpp"
#include <cstdio>
#include <cstddef>
#include <stdio.h>
#include <cstdio>

Comment on lines 2 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
#include "demo.hpp"
#include <cstdio>
#include <cstddef>
#include <stdio.h>
#include <cstdio>

Comment on lines 2 to +3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
#include "demo.hpp"
#include <cstdio>
#include <cstddef>
#include <stdio.h>
#include <cstdio>


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
auto main() -> int
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
auto main() -> int
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
auto main() -> int
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
auto main() -> int
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
auto main() -> int
{

// using size_t from cstddef
size_t dummyFunc(size_t i) { return i; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main()
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main()
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main()
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main()
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main()
{

int main()
{
for (;;)
break;


int main(){

Check warning on line 8 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:8:5 [modernize-use-trailing-return-type]

use a trailing return type for this function

Check warning on line 8 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:8:5 [modernize-use-trailing-return-type]

use a trailing return type for this function

Check warning on line 8 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:8:5 [modernize-use-trailing-return-type]

use a trailing return type for this function

for (;;) break;

Check warning on line 10 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:10:13 [readability-braces-around-statements]

statement should be inside braces

Check warning on line 10 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:10:13 [readability-braces-around-statements]

statement should be inside braces

Check warning on line 10 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:10:13 [readability-braces-around-statements]

statement should be inside braces

Comment on lines +6 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main(){
for (;;) break;
for (;;)
break;

clang-tidy diagnostics

Suggested change
int main(){
for (;;) break;
for (;;) {
break;
}

Comment on lines +6 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main(){
for (;;) break;
for (;;)
break;

clang-tidy diagnostics

Suggested change
int main(){
for (;;) break;
for (;;) {
break;
}

Comment on lines +6 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main(){
for (;;) break;
for (;;)
break;

clang-tidy diagnostics

Suggested change
int main(){
for (;;) break;
for (;;) {
break;
}

Comment on lines +6 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main(){
for (;;) break;
for (;;)
break;

clang-tidy diagnostics

Suggested change
int main(){
for (;;) break;
for (;;) {
break;
}

Comment on lines +6 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
int main(){
for (;;) break;
for (;;)
break;

clang-tidy diagnostics

Suggested change
int main(){
for (;;) break;
for (;;) {
break;
}


printf("Hello world!\n");

Check warning on line 13 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:13:5 [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

Check warning on line 13 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:13:5 [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

Check warning on line 13 in src/demo.cpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.cpp:13:5 [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

src/demo.cpp:13:5: warning: [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

   13 |     printf("Hello world!\n");
      |     ^

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

src/demo.cpp:13:5: warning: [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

   13 |     printf("Hello world!\n");
      |     ^

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

src/demo.cpp:13:5: warning: [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

   13 |     printf("Hello world!\n");
      |     ^

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

src/demo.cpp:13:5: warning: [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

   13 |     printf("Hello world!\n");
      |     ^

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

src/demo.cpp:13:5: warning: [cppcoreguidelines-pro-type-vararg]

do not call c-style vararg functions

   13 |     printf("Hello world!\n");
      |     ^


return 0;
}



return 0;}
Comment on lines +15 to +18

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
return 0;}
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
return 0;}
return 0;
}

Comment on lines +15 to +18

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
return 0;}
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
return 0;}
return 0;
}

Comment on lines +15 to +18

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
return 0;}
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
return 0;}
return 0;
}

Comment on lines +15 to +18

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
return 0;}
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
return 0;}
return 0;
}

Comment on lines +15 to +18

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
return 0;}
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
return 0;}
return 0;
}

11 changes: 3 additions & 8 deletions src/demo.hpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#pragma once

Check notice on line 1 in src/demo.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

Run clang-format on src/demo.hpp

File src/demo.hpp does not conform to Custom style guidelines. (lines 1, 8, 11, 12, 31, 34)

Check notice on line 1 in src/demo.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

Run clang-format on src/demo.hpp

File src/demo.hpp does not conform to Custom style guidelines. (lines 1, 8, 11, 12, 31, 34)

Check notice on line 1 in src/demo.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

Run clang-format on src/demo.hpp

File src/demo.hpp does not conform to Custom style guidelines. (lines 1, 8, 11, 12, 31, 34)



class Dummy {
char* useless;
int numb;
Dummy() :numb(0), useless("\0"){}
Comment on lines 6 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
char* useless;
int numb;
Dummy() :numb(0), useless("\0"){}
char* useless { "\0" };
int numb { 0 };
Dummy() { }

Comment on lines 6 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
char* useless;
int numb;
Dummy() :numb(0), useless("\0"){}
char* useless { "\0" };
int numb { 0 };
Dummy() { }

Comment on lines 6 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
char* useless;
int numb;
Dummy() :numb(0), useless("\0"){}
char* useless { "\0" };
int numb { 0 };
Dummy() { }

Comment on lines 6 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
char* useless;
int numb;
Dummy() :numb(0), useless("\0"){}
char* useless { "\0" };
int numb { 0 };
Dummy() { }

Comment on lines 6 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggestion

Suggested change
char* useless;
int numb;
Dummy() :numb(0), useless("\0"){}
char* useless { "\0" };
int numb { 0 };
Dummy() { }


public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}

Check warning on line 11 in src/demo.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.hpp:11:11 [modernize-use-trailing-return-type]

use a trailing return type for this function

Check warning on line 11 in src/demo.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.hpp:11:11 [modernize-use-trailing-return-type]

use a trailing return type for this function

Check warning on line 11 in src/demo.hpp

View workflow job for this annotation

GitHub Actions / cpp-linter (17, cpp-linter/cpp-linter, hide-reuse-pr-reviews)

src/demo.hpp:11:11 [modernize-use-trailing-return-type]

use a trailing return type for this function
Comment on lines +8 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
Dummy() :numb(0), useless("\0"){}
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
Dummy()
: numb(0)
, useless("\0")
{
}
public:
void* not_useful(char* str) { useless = str; }

Comment on lines 10 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
public:
auto not_useful(char* str) -> void* { useless = str; }

Comment on lines +8 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
Dummy() :numb(0), useless("\0"){}
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
Dummy()
: numb(0)
, useless("\0")
{
}
public:
void* not_useful(char* str) { useless = str; }

Comment on lines 10 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
public:
auto not_useful(char* str) -> void* { useless = str; }

Comment on lines +8 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
Dummy() :numb(0), useless("\0"){}
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
Dummy()
: numb(0)
, useless("\0")
{
}
public:
void* not_useful(char* str) { useless = str; }

Comment on lines 10 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
public:
auto not_useful(char* str) -> void* { useless = str; }

Comment on lines +8 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
Dummy() :numb(0), useless("\0"){}
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
Dummy()
: numb(0)
, useless("\0")
{
}
public:
void* not_useful(char* str) { useless = str; }

Comment on lines 10 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
public:
auto not_useful(char* str) -> void* { useless = str; }

Comment on lines +8 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Suggested change
Dummy() :numb(0), useless("\0"){}
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
Dummy()
: numb(0)
, useless("\0")
{
}
public:
void* not_useful(char* str) { useless = str; }

Comment on lines 10 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

Suggested change
public:
void *not_usefull(char *str){
useless = str;
return 0;
}
void *not_useful(char *str){useless = str;}
public:
auto not_useful(char* str) -> void* { useless = str; }

};


Expand All @@ -28,14 +26,11 @@









struct LongDiff
{

long diff;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Please remove the line(s)

  • 35

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Please remove the line(s)

  • 35

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Please remove the line(s)

  • 35

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Please remove the line(s)

  • 35

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-format suggestion

Please remove the line(s)

  • 35

};