GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
ada

Tune layout in membership test

Whitespace in the Ada compiler's `freeze.adb` and `sem_ch13.adb` was adjusted for better code formatting.

This commit makes minor cosmetic adjustments to the Ada compiler’s codebase, specifically in freeze.adb and sem_ch13.adb. It focuses on tuning the whitespace around membership tests. This is purely a stylistic cleanup to improve code readability and maintainability for developers, with no impact on compiler functionality or generated code.

In Details

This commit modifies freeze.adb and sem_ch13.adb, targeting code layout around membership tests. This involves whitespace adjustments, a common practice in code maintenance to improve visual consistency and readability. While seemingly superficial, consistent formatting is crucial in large codebases like GCC's Ada front-end, making code easier to parse and navigate for developers. No functional changes are introduced.

For Context

Think of code like a book: even if the words are correct, poor formatting (like inconsistent spacing) can make it hard to read. This commit is like a spell-check and formatting pass for the Ada compiler's own code. It adjusts the spacing and layout in parts of the freeze.adb and sem_ch13.adb files, specifically around 'membership tests' (where the code checks if a value belongs to a set). These changes are purely cosmetic; they don't change how the compiler works or how your Ada programs behave. Instead, they make the compiler's source code cleaner and easier for its developers to understand and maintain.

Filed Under: adacompilerwhitespacecode quality