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

Add clang-tidy GHA #12694

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/clang-tidy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: clang-tidy-review

on:
push:
branches: ['**']
pull_request:
branches: ['**']

permissions: read-all

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Optionally generate compile_commands.json

- uses: ZedThree/clang-tidy-review@v0.14.0
id: review
with:
split_workflow: true

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/upload@v0.14.0
id: upload-review

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1
2 changes: 1 addition & 1 deletion src/ds/d500/d500-device.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2022 Intel Corporation. All Rights Reserved.

#include "metadata-parser.h"
#include <metadata-parser.h>
#include "metadata.h"
#include <src/backend.h>
#include <src/platform/platform-utils.h>
Expand Down
2 changes: 1 addition & 1 deletion src/ds/d500/d500-factory.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2022 Intel Corporation. All Rights Reserved.

#include "device.h"
#include <device.h>
#include "image.h"
#include "metadata-parser.h"

Expand Down
2 changes: 1 addition & 1 deletion src/ds/d500/d500-options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.


#include "d500-options.h"
#include "d500-options.h"

namespace librealsense
{
Expand Down