You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Run clang-format style check for C/C++ source code.
uses: jidicula/clang-format-action@v4.14.0
if: always()
with:
clang-format-version: '10'
check-path: 'src/EnergyPlus'
clang-format-10 is no longer installable on Ubuntu 24.04 (the current LTS) which makes it quite annoying.
I can't seem to figure out a way to tweak the rules so that clang-format-18 for eg produces the same format as clang-format-10, in particular with respect to the way the trailing comments are aligned (AlignTrailingComments: true) when they are after closing braces and I've been looking for an hour.
Here's an example from ZoneTempPredictorCorrector.cc:
I would recommend picking a newer clang-format version, reformatting the entire codebase in one commit, and excluding it by adding it to .git-blame-ignore-revs.
Another diff is the way parameter packs are handled and attributes
IOFiles.hh parameter packs and spacing before braces in ctor
EPVector.hh attributes:
A couple of weird things can be found in the .clang-format config file too
Issue overview
EnergyPlus/.github/workflows/test_code_integrity.yml
Lines 16 to 21 in acda84e
clang-format-10 is no longer installable on Ubuntu 24.04 (the current LTS) which makes it quite annoying.
I can't seem to figure out a way to tweak the rules so that clang-format-18 for eg produces the same format as clang-format-10, in particular with respect to the way the trailing comments are aligned (
AlignTrailingComments: true
) when they are after closing braces and I've been looking for an hour.Here's an example from ZoneTempPredictorCorrector.cc:
I would recommend picking a newer clang-format version, reformatting the entire codebase in one commit, and excluding it by adding it to .git-blame-ignore-revs.
Another diff is the way parameter packs are handled and attributes
IOFiles.hh parameter packs and spacing before braces in ctor
EPVector.hh attributes:
A couple of weird things can be found in the .clang-format config file too
EnergyPlus/src/.clang-format
Lines 1 to 2 in acda84e
EnergyPlus/src/.clang-format
Line 24 in acda84e
Details
Some additional details for this issue (if relevant):
Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
The text was updated successfully, but these errors were encountered: