Skip to content

Commit

Permalink
Bump cpp-linter from 1.5.0 to 1.5.1 (#138)
Browse files Browse the repository at this point in the history
Bumps [cpp-linter](https://github.com/cpp-linter/cpp-linter) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/cpp-linter/cpp-linter/releases)
- [Commits](cpp-linter/cpp-linter@v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: cpp-linter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Feb 21, 2023
1 parent bc2c77b commit cbfcee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ clang-tools==0.7.0

# cpp-linter core Python executable package
# For details please see: https://github.com/cpp-linter/cpp-linter
cpp-linter==1.5.0
cpp-linter==1.5.1

1 comment on commit cbfcee6

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

📜 Run clang-format on the following files

  • demo/demo.cpp
  • demo/demo.hpp

💬 Output from clang-tidy

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

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

#include <stdio.h>
         ^~~~~~~~~
         <cstdio>

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

use a trailing return type for this function

int main(){
~~~ ^
auto       -> int

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

statement should be inside braces

    for (;;) break;
            ^
             {

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

do not call c-style vararg functions

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


demo/demo.hpp
/demo/demo.hpp:6:11: warning: [modernize-use-default-member-init]

use default member initializer for 'useless'

    char* useless;
          ^
                 {"\0"}

/demo/demo.hpp:7:9: warning: [modernize-use-default-member-init]

use default member initializer for 'numb'

    int numb;
        ^
            {0}

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

use a trailing return type for this function

    void *not_useful(char *str){useless = str;}
    ~~~~~~^
    auto                        -> void *

Please sign in to comment.