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

Only run clang-format if PROJECT_IS_TOP_LEVEL #3

Merged
merged 1 commit into from
Jul 7, 2024
Merged

Only run clang-format if PROJECT_IS_TOP_LEVEL #3

merged 1 commit into from
Jul 7, 2024

Conversation

scribam
Copy link

@scribam scribam commented Jun 14, 2024

No description provided.

@p0358
Copy link
Member

p0358 commented Jul 6, 2024

Does that mean it currently ran clang-format for subprojects like rapidjson too?

@scribam
Copy link
Author

scribam commented Jul 7, 2024

These changes are to prevent clang-format to run when discord-rpc is used as a library in a parent project. Various forks were created to disable clang-format because it cause issues (flyinghead@6cae2bd, Panda3DS-emu@007aa55, shadps4-emu@4ec2181).

PROJECT_IS_TOP_LEVEL will be true when you clone this repository and work directly on it.
PROJECT_IS_TOP_LEVEL will be false when you use this repository as an external dependency: you only want to use the library and don't care about clang-format.

@p0358
Copy link
Member

p0358 commented Jul 7, 2024

Ah, fair enough. Thanks for all your PRs too.

@p0358 p0358 merged commit c62c34d into harmonytf:master Jul 7, 2024
2 of 3 checks passed
@scribam scribam deleted the disable-clang-format branch July 7, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants