Sitelet https://github.com/microsoft/DirectXShaderCompiler/pull/8995
Skip to content

[202x][0004] Remove interface keyword - #8995

Open
Chris B (llvm-beanz) wants to merge 2 commits into
microsoft:mainfrom
llvm-beanz:interface-keyword
Open

Chris B (llvm-beanz) wants to merge 2 commits into
microsoft:mainfrom
llvm-beanz:interface-keyword

Conversation

@llvm-beanz

Copy link
Copy Markdown
Collaborator

TC57 has decided not to include interface support in the official standard for HLSL. This change removes the feature in HLSL 202x and issues a warning diagnostic in the hlsl-2026-compat group to enable users to identify issues before they move to HLSL 2026.

Resolves #8481

Assisted-by: GitHub Copilot

TC57 has decided not to include `interface` support in the official
standard for HLSL. This change removes the feature in HLSL 202x and
issues a warning diagnostic in the hlsl-2026-compat group to enable
users to identify issues before they move to HLSL 2026.

Resolves microsoft#8481

Assisted-by: GitHub Copilot
Copilot AI balanced review requested due to automatic review settings October 1, 2026 02:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The release note incorrectly limits the compatibility warning to HLSL 2021.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Removes interface from HLSL 202x while providing migration diagnostics for earlier versions.

Changes:

  • Marks interface as removed in HLSL 202x.
  • Adds compatibility warnings and tests.
  • Documents the language change.
File Description
tools/​clang/​test/​SemaHLSL/​removed-keywords-202x.hlsl Tests 202x behavior.
tools/​clang/​test/​SemaHLSL/​removed-keywords-2026-warnings.hlsl Tests compatibility warnings.
tools/​clang/​lib/​Parse/​ParseDecl.cpp Emits the deprecation warning.
tools/​clang/​include/​clang/​Basic/​TokenKinds.def Marks interface as removed.
tools/​clang/​include/​clang/​Basic/​DiagnosticCommonKinds.td Defines the warning diagnostic.
docs/​ReleaseNotes.md Documents the removal.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/ReleaseNotes.md Outdated
Updated release notes to reflect changes in HLSL 202x compatibility and features.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 14:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The lexer, parser diagnostic, tests, and release notes consistently implement the intended removal.

Review effort: Balanced
Findings: None

Resolved since last review (1)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

[202x][0004] Remove interface keyword

2 participants