Skip to content

gui: ensure stable color ordering between compilers#10584

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
gadfort:gui-colorstable
Jun 2, 2026
Merged

gui: ensure stable color ordering between compilers#10584
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
gadfort:gui-colorstable

Conversation

@gadfort
Copy link
Copy Markdown
Contributor

@gadfort gadfort commented Jun 2, 2026

Summary

Ensure both clang and gcc generate the same color sequence.
Per claude:

GCC typically evaluates function arguments right-to-left.
Clang typically evaluates them left-to-right.

Type of Change

  • Bug fix

Impact

Bazel and CMake builds will have the same colors.

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

Signed-off-by: Peter Gadfort <gadfort@zeroasic.com>
@gadfort gadfort requested a review from a team as a code owner June 2, 2026 18:49
@gadfort gadfort requested a review from maliberty June 2, 2026 18:49
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the generate_next_color lambda in displayControls.cpp to evaluate the random color components (blue, green, and red) in a deterministic sequence before constructing the QColor object. This prevents unspecified evaluation order of arguments in the QColor constructor. There are no review comments, and we have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Signed-off-by: Peter Gadfort <gadfort@zeroasic.com>
@gadfort gadfort requested a review from a team as a code owner June 2, 2026 19:40
@github-actions github-actions Bot added size/M and removed size/XS labels Jun 2, 2026
@maliberty maliberty merged commit b3e0153 into The-OpenROAD-Project:master Jun 2, 2026
16 checks passed
@gadfort gadfort deleted the gui-colorstable branch June 2, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants