Skip to content

Conversation

@hjmjohnson
Copy link
Member

Replace #190 with recommendations implemented.

Follow-up to ITK pull request
InsightSoftwareConsortium/ITK#3713 commit
InsightSoftwareConsortium/ITK@69151c3
"STYLE: Remove backslash + indent from literals, to avoid unwanted spaces"

@github-actions github-actions bot added area:Appendices Issues affecting the Appendices part language:LaTeX Changes to LaTeX code type:BookStyle Changes to book style files type:Documentation Documentation improvement or change labels Jan 16, 2026
@hjmjohnson
Copy link
Member Author

@N-Dekker, I was unable to write to your branch, so I created this new PR with the recommended updates.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a new coding style guideline about using backslashes as line continuation characters in C++ code. The guideline warns about readability issues and unintended consequences when using backslashes, particularly in comments and multi-line string literals.

Changes:

  • Added a new "Backslashes" section to the coding style guide
  • Provided concrete examples showing problematic backslash usage and better alternatives
  • Established that backslashes are discouraged in standard C++ code but allowed in preprocessor macros

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Follow-up to ITK pull request
InsightSoftwareConsortium/ITK#3713 commit
InsightSoftwareConsortium/ITK@69151c3
"STYLE: Remove backslash + indent from literals, to avoid unwanted spaces"
@hjmjohnson hjmjohnson force-pushed the guideline-backslash-line-continuation-char-updated branch from e12796e to b2b20b0 Compare January 19, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Appendices Issues affecting the Appendices part language:LaTeX Changes to LaTeX code type:BookStyle Changes to book style files type:Documentation Documentation improvement or change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants