Skip to content

Conversation

@pow2clk
Copy link
Collaborator

@pow2clk pow2clk commented Apr 3, 2025

Capitalize all the variables and rename a few in DxilValidation.cpp in keeping with https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

As this file was easily mistaken for applying to the golden rule: https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly it is at serious risk of receiving changes that will get hung up by requirements to follow the LLVM coding guidelines. This brings the cases where variable capitalization is not in line with the coding standards to avoid such pitfalls in the future.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Capitalize all the variables and rename a few in DxilValidation.cpp in keeping with
https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

As this file was easily mistaken for applying to the golden rule:
https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly
it is at serious risk of receiving changes that will get hung up by
requirements to follow the LLVM coding guidelines. This brings the cases
where variable capitalization is not in line with the coding standards
to avoid such pitfalls in the future.
@pow2clk pow2clk changed the title DxilValidation variable capitalization coding standards [NFC] Standardize DxilValidation variable capitalization Apr 3, 2025
damyanp
damyanp previously approved these changes Apr 3, 2025
Copy link
Member

@damyanp damyanp left a comment

Choose a reason for hiding this comment

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

This should help avoid ambiguity in the future.

We may want to consider waiting until some other changes in flight are complete (or we may not - we should check anyway!)

Copy link
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

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

While I don't normally like wholesale reformatting changes like this, if it alleviates conflicts regarding the ambiguity of coding standards to apply for future changes, it's probably the lesser of evils.

@pow2clk pow2clk merged commit e50f599 into microsoft:main Apr 4, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Apr 4, 2025
@pow2clk pow2clk deleted the code_standards branch April 4, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants