[PATCH 4/7] clang-format: Update PR with GitHub Action
authorJohannes Demel <demel@uni-bremen.de>
Tue, 17 Mar 2020 20:53:08 +0000 (21:53 +0100)
committerA. Maitland Bottoms <bottoms@debian.org>
Sat, 28 Mar 2020 01:48:10 +0000 (01:48 +0000)
Gbp-Pq: Name 0004-clang-format-Update-PR-with-GitHub-Action.patch

.github/workflows/check-pr-formatting.yml [new file with mode: 0644]
include/volk/volk_common.h

diff --git a/.github/workflows/check-pr-formatting.yml b/.github/workflows/check-pr-formatting.yml
new file mode 100644 (file)
index 0000000..b1d2d83
--- /dev/null
@@ -0,0 +1,19 @@
+name: Check PR Formatting
+
+on:
+  push:
+  pull_request:
+    paths-ignore:
+      - 'tmpl/'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - uses: gnuradio/clang-format-lint-action@v0.5-4
+      with:
+        source: '.'
+        exclude: './volk'
+        extensions: 'c,cc,cpp,cxx,h,hh'
\ No newline at end of file
index 8167d23cf0a9500fc21787aed0909518b0d2653f..7e78358f5d96a50b96c5f4c774bb133223c3172f 100644 (file)
@@ -69,7 +69,7 @@
 ////////////////////////////////////////////////////////////////////////
 #if defined(_MSC_VER)
 #pragma warning(disable : 4244) //'conversion' conversion from 'type1' to 'type2',
-                                //possible loss of data
+                                // possible loss of data
 #pragma warning(disable : 4305) //'identifier' : truncation from 'type1' to 'type2'
 #endif