Skip to content

Can't find std headers #57

Answered by 2bndy5
KungFuDonkey asked this question in Q&A
Apr 15, 2022 · 0 comments · 15 replies
Discussion options

You must be logged in to vote

I do not know if it is possible to check what kind of error has been thrown by the action.

Well, filtering the errors thrown by clang-tidy is not an option, and it isn't a feature that we plan to add.

I do not know how to either generate a database for the workspace

This problem is rather easy. Just run CMake with the option to save the generated compilation database.

cmake -Bbuild src -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

Then specify to the action where the database exists using the database option.

Full example
cpp-linter:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Generate compilation database
        run: mkdir build && cmake -Bbuild src …

Replies: 0 comments 15 replies

Comment options

You must be logged in to vote
10 replies
@2bndy5
Comment options

@KungFuDonkey
Comment options

@2bndy5
Comment options

@2bndy5
Comment options

@KungFuDonkey
Comment options

Answer selected by KungFuDonkey
Comment options

You must be logged in to vote
3 replies
@2bndy5
Comment options

@shenxianpeng
Comment options

@2bndy5
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants