You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clang-format supports many different languages and as part of that support it can switch between different languages to add/remove formatting rules. Right now clang-format can fairly reasonably format HLSL running under C++ mode however annotation syntax could use better support.
Adding an HLSL mode is the first step in supporting HLSL specific formatting rules.
Automatically determining HLSL as the source language is a downstream task that may or may not actually be possible. Plenty of HLSL programs will not have obvious differences from C++ so autodetection may have to be limited to huristics or file extension. This is still an open design question.
AC:
A test in the flavor of this one verifies language mode is HLSL
The text was updated successfully, but these errors were encountered:
clang-format supports many different languages and as part of that support it can switch between different languages to add/remove formatting rules. Right now clang-format can fairly reasonably format HLSL running under C++ mode however annotation syntax could use better support.
Adding an HLSL mode is the first step in supporting HLSL specific formatting rules.
Automatically determining HLSL as the source language is a downstream task that may or may not actually be possible. Plenty of HLSL programs will not have obvious differences from C++ so autodetection may have to be limited to huristics or file extension. This is still an open design question.
AC:
A test in the flavor of this one verifies language mode is HLSL
clang-format supports many different languages and as part of that support it can switch between different languages to add/remove formatting rules. Right now clang-format can fairly reasonably format HLSL running under C++ mode however annotation syntax could use better support.
Adding an HLSL mode is the first step in supporting HLSL specific formatting rules.
Automatically determining HLSL as the source language is a downstream task that may or may not actually be possible. Plenty of HLSL programs will not have obvious differences from C++ so autodetection may have to be limited to huristics or file extension. This is still an open design question.
AC:
The text was updated successfully, but these errors were encountered: