[all-commits] [llvm/llvm-project] 2e3995: [HLSL][RootSignature] Use "stringified" version fo...

Finn Plummer via All-commits all-commits at lists.llvm.org
Thu Jun 26 09:19:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e3995981cb3373e1159c2822e9ab48911caa0d9
      https://github.com/llvm/llvm-project/commit/2e3995981cb3373e1159c2822e9ab48911caa0d9
  Author: Finn Plummer <finn.c.plum at gmail.com>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    M clang/include/clang/Lex/LexHLSLRootSignature.h
    M clang/test/SemaHLSL/RootSignature-err.hlsl

  Log Message:
  -----------
  [HLSL][RootSignature] Use "stringified" version for diagnostic output of punctuator tokens (#145827)

This pr will corrects the output with a stringified version of a
puncuator (eg `')'`) instead of its ascii value.

- Update `LexHLSLRootSignature` to fix the `DiagnosticBuilder`
`operator<<` overload to correclty format the puncuator
- Add testcase demonstrating the stringified version is output

Resolves https://github.com/llvm/llvm-project/issues/145814.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list