Skip to content

#14 Make C++ comment stripping safe for string and raw string literals - #23

Merged
iray-tno merged 1 commit into
mainfrom
feature/14_cpp_comment_stripping_literals
Jun 14, 2026
Merged

#14 Make C++ comment stripping safe for string and raw string literals#23
iray-tno merged 1 commit into
mainfrom
feature/14_cpp_comment_stripping_literals

Conversation

@iray-tno

Copy link
Copy Markdown
Owner

Summary

  • Replace regex-only C++ comment removal with a small scanner that preserves normal string literals, char literals, and raw string literals.
  • Use the scanner in both C++ preprocessing and C++ minification.
  • Add regression tests for URLs, block-comment markers in strings, char literals, raw strings, and minifier behavior.

Tests

  • uv run pytest tests/test_cpp_preprocessor.py -q
  • uv run pytest tests/test_cpp_integration.py tests/test_error_messages.py -q
  • uv run pytest -q

Closes #14.

@iray-tno
iray-tno merged commit 82bf3fa into main Jun 14, 2026
2 checks passed
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.

Make C++ comment stripping safe for string and raw string literals

1 participant