Skip to content

Codebase Improvements and Cleanup#43

Merged
ouankou merged 4 commits into
mainfrom
refine/codebase-improvements
Feb 27, 2026
Merged

Codebase Improvements and Cleanup#43
ouankou merged 4 commits into
mainfrom
refine/codebase-improvements

Conversation

@ouankou
Copy link
Copy Markdown
Owner

@ouankou ouankou commented Feb 14, 2026

Codebase improvements and cleanup

This PR contains several small improvements to the ompparser codebase:

  1. Clean up temporary files: Removed all tmp_*.pragmas files from repository root
  2. Add check target to CMake: Added a convenient check target that runs ctest --output-on-failure
  3. Improve namespace hygiene: Removed using namespace std; from public header file (OpenMPIR.h) and qualified all standard library types with std::

All 1525 tests pass after these changes!

- Remove trimWhitespaceCopy wrapper function
- Replace 9 call sites with trimWhitespace
- Uses more complete whitespace char set (form feed, vertical tab)
- Add trimWhitespace overload taking pos/count to avoid substring copies
- Remove redundant check in trimWhitespace overload
- Add check for pos >= text.size() to prevent out_of_range exception
- Add overflow check for pos + count calculation (end_pos < pos)
- Ensures robust handling of edge cases
@ouankou
Copy link
Copy Markdown
Owner Author

ouankou commented Feb 14, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@ouankou
Copy link
Copy Markdown
Owner Author

ouankou commented Feb 27, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 63bfefc2da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CMakeLists.txt Outdated
@ouankou
Copy link
Copy Markdown
Owner Author

ouankou commented Feb 27, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ouankou ouankou merged commit 90ef6c6 into main Feb 27, 2026
13 checks passed
@ouankou ouankou deleted the refine/codebase-improvements branch February 27, 2026 05:05
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.

1 participant