Skip to content

Reformat action thread comments #24

@shenxianpeng

Description

@shenxianpeng

The thread comments not looks fancy than other projects:

Maybe we could reformat thread comments, I draft a new one (WIP), and I will continue to update if there is a new idea.

Cpp-Linter Report ⚠️

Some files didn't pass the configured checks.

Check the details

The following files need to be formatted (report from clang-format)

  • demo.hpp
  • demo.cpp

The following files have static analysis errors (report from clang-tidy)

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

use a trailing return type for this function

    void *not_usefull(char *str){
    ~~~~~~^
    auto                         -> void *

demo.hpp:12:16: warning: [modernize-use-nullptr]

use nullptr

        return 0;
               ^
               nullptr

demo.cpp

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

use a trailing return type for this function

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

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

statement should be inside braces

    for (;;)
            ^
             {

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

do not call c-style vararg functions

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

Have any feedback or feature suggestions? Share it here.


Cpp-Linter Report ✔️

No problems need attention.

Have any feedback or feature suggestions? Share it here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions