diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 711c412..c4d59a4 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -11,11 +11,13 @@ jobs: with: python-version: '3.x' cache: 'pip' # caching pip dependencies + + - uses: ammaraskar/gcc-problem-matcher@master - name: Install PIP packages run: pip install -r requirements.txt - - uses: ammaraskar/gcc-problem-matcher@master + - name: Check code formatting run: clang-format -n -Werror `find src -name '*.cpp'` diff --git a/src/main.cpp b/src/main.cpp index 17ed480..7d62ab1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,12 +5,12 @@ struct Foobar { public: - explicit Foobar(int value) : _helloField(value) {} + explicit Foobar(int value) : mhelloField(value) {} - [[nodiscard]] int value() const { return _helloField; } + [[nodiscard]] int value() const { return mhelloField; } private: - int _helloField; + int mhelloField; }; TEST(Foobar, goodTest) {