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
runs from the CWD or runs from src dir automatically
Current Behavior
expects to run from project_root (up a level from src)
Steps to Reproduce
clone this repo
change formatting of a c/c++ module
cd src
../build-aux/run-clang-format
...
Anything else we should know?
I'm using the template to include a sub-project, and I can imagine a use case where someone includes a sub-repository not working well with the current clang-format script. It also seems very temperamental - it must be used exactly in one way.
The text was updated successfully, but these errors were encountered:
PatTheMav
changed the title
clang-format doesn't run from src directory
Default formatter scripts don't work when run from source directory
Apr 14, 2024
That's intentional - it's designed to be run from the checkout directory by the GHA actions provided by the template and is only made available for convenience outside of that.
Any other use-case can and should be fulfilled by running the formatters directly (e.g. via a pre-commit hook) or using an IDE with appropriate formatting support.
Operating System Info
Ubuntu 22.04
Other OS
No response
OBS Studio Version
30.1.2
OBS Studio Version (Other)
No response
OBS Studio Log URL
N/A
OBS Studio Crash Log URL
No response
Expected Behavior
runs from the CWD or runs from src dir automatically
Current Behavior
expects to run from project_root (up a level from src)
Steps to Reproduce
...
Anything else we should know?
I'm using the template to include a sub-project, and I can imagine a use case where someone includes a sub-repository not working well with the current clang-format script. It also seems very temperamental - it must be used exactly in one way.
The text was updated successfully, but these errors were encountered: