Enhance Code Readability with clang-format and Refactoring #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes a series of changes made primarily through the application of clang-format to enhance code formatting and readability. It is recommended to review these changes with the -w and -b options in diff to ignore whitespace changes, providing a clearer view of the substantive modifications. The specific improvements are as follows:
Application of clang-format: Utilized clang-format to standardize and clean up the codebase, aligning it with best practices for formatting and style.
Removal of unnecessary blank lines: Eliminated superfluous blank lines found among some global variable declarations and function declarations, making the code more compact and easy to navigate.
Breaking long comments into multiple lines: Refactored lengthy comments to span multiple lines, thereby improving the readability and maintainability of the code.
Standardization of variable declaration formatting: Reorganized multi-line variable declarations to adhere to a uniform format, enhancing the visual coherence of the code.
Adjustment of indentation: Fine-tuned the indentation within conditional statements and function calls to better illustrate the logical structure of the code.
Code refactoring: Simplified complex conditional statements, making them more understandable and maintainable.
The primary goal of these changes is to improve the overall quality and maintainability of the code, facilitating easier understanding and modification by other developers in the future. This pull request focuses on non-functional enhancements, maintaining the existing behavior of the application while significantly improving its underlying code structure.