Skip to content

Refactor: Modernize C++ code in FsColorMatKey#42

Draft
google-labs-jules[bot] wants to merge 1 commit intomainfrom
refactor/FsColorMatKey
Draft

Refactor: Modernize C++ code in FsColorMatKey#42
google-labs-jules[bot] wants to merge 1 commit intomainfrom
refactor/FsColorMatKey

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This patch refactors the C++ source and header files in the Source/Effects/FsColorMatKey directory to align with modern C++ practices and improve code clarity.

The following changes were made to the files in the target directory:

  • Removed unnecessary separator comments and outdated version information.
  • Translated all Japanese comments to English to make the code more accessible to a wider audience.
  • Replaced traditional #ifndef/#define/#endif include guards with the more modern #pragma once directive in header files.
  • Wrapped #include blocks with // clang-format off and // clang-format on to protect the include order from being changed by formatters.
  • Applied clang-format to the modified files to ensure consistent code styling.

The following files were successfully refactored:

  • ColorMatKey.h
  • ColorMatKey.cpp
  • Fs_Target.h

The following files were intentionally skipped due to unresolved external dependencies (GInfo and ParamInfo8 structs) that prevented the code from being validated and safely modified:

  • ColorMatKeySub8.cpp
  • Fs_Entry.h

Additionally, the .clang-format-ignore file was updated to allow formatting of the target directory.

This commit refactors the C++ source and header files in the `Source/Effects/FsColorMatKey` directory.

The changes include:
- Removing unnecessary comments.
- Translating Japanese comments to English.
- Replacing old include guards with `#pragma once`.
- Protecting include order with `clang-format` guards.
- Applying `clang-format` for consistent styling.

The files `ColorMatKeySub8.cpp` and `Fs_Entry.h` were skipped due to missing external dependencies that caused validation failures.
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.

0 participants