Skip to content

Commit

Permalink
Remove Linter Message Unknown Header - QDebug and QFile is still an i…
Browse files Browse the repository at this point in the history
…ssue (#104)

The linter has still issues to find the QDebug and QFile. Further, investigation is necessary.
  • Loading branch information
franziska-wegner authored Jan 7, 2024
1 parent 33593b5 commit 6fa20d1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:

env:
QT_VERSION: "6.2.0"
QT_ARCH: "gcc_64"

permissions:
contents: read
Expand Down Expand Up @@ -57,6 +58,10 @@ jobs:
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
echo "qt-main-dir=${{ github.workspace }}/Qt/Qt/${{ env.QT_VERSION }}/${{ env.QT_ARCH }}" >> "$GITHUB_OUTPUT"
echo "qt-include-dir=${{ steps.strings.outputs.qt-main-dir }}/include" >> "$GITHUB_OUTPUT"
echo "qt-lib-dir=${{ steps.strings.outputs.qt-main-dir }}/lib" >> "$GITHUB_OUTPUT"
echo "google-test-dir=${{ github.workspace }}/external/GoogleTestFramework" >> "$GITHUB_OUTPUT"
- name: Configure CMake
env:
Expand Down Expand Up @@ -110,8 +115,13 @@ jobs:
-DOPENMP_LIBRARIES="/opt/homebrew/opt/llvm/lib"
-S ${{ github.workspace }}
- name: Build (Unix)
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
if: ${{ !startsWith(matrix.os,'windows-') }}
run: sudo cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: C/C++ Linter
uses: cpp-linter/cpp-linter-action@v2.7.5
uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
Expand All @@ -122,6 +132,8 @@ jobs:
files-changed-only: false
lines-changed-only: false
no-lgtm: false
repo-root: ${{ github.workspace }}
extra-args: "-I./include -I./tests -I${{ steps.strings.outputs.google-test-dir }}/googletest/include -I${{ steps.strings.outputs.github.workspace }}/googletest -I${{ steps.strings.outputs.google-test-dir }}/googlemock/include -I${{ steps.strings.outputs.google-test-dir }}/googlemock -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtCore -isystem ${{ steps.strings.outputs.qt-include-dir }} -isystem ${{ steps.strings.outputs.qt-main-dir }}/mkspecs/linux-g++ -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtQuick -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtGui -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtQml -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtNetwork -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtQmlModels -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtOpenGL -isystem ${{ steps.strings.outputs.qt-include-dir }}/QtWidgets -I${{ steps.strings.outputs.qt-lib-dir }}/QtCore.framework/Versions/A/Headers/QDebug -I${{ steps.strings.outputs.qt-lib-dir }}/QtCore.framework/Versions/A/Headers/QFile"
# The following value will only update a single comment
# in a pull request's thread. Set it to false to disable the comment.
# Set it to true to post a new comment (and delete the old comment).
Expand Down

0 comments on commit 6fa20d1

Please sign in to comment.