[clang] [NFC][HLSL] Move Sema work from `ParseMicrosoftRootSignatureAttributeArgs` (PR #143184)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 6 16:20:20 PDT 2025


================
@@ -3619,6 +3619,19 @@ class Sema final : public SemaBase {
                                       SourceLocation NameLoc,
                                       bool IsTemplateTypeArg);
 
+  /// Computes the unique Root Signature identifier from the given signature,
+  /// then lookup if there is a previousy created Root Signature decl.
+  ///
+  /// Returns the identifier and if it was found
+  std::pair<IdentifierInfo *, bool>
----------------
hekota wrote:

Nit: consider using `std::optional<IdentifierInfo*>`.

https://github.com/llvm/llvm-project/pull/143184


More information about the cfe-commits mailing list