Skip to content

Commit f7f729d

Browse files
committed
add comments
1 parent bc9bb26 commit f7f729d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3619,8 +3619,15 @@ class Sema final : public SemaBase {
36193619
SourceLocation NameLoc,
36203620
bool IsTemplateTypeArg);
36213621

3622+
/// Computes the unique Root Signature identifier from the given signature,
3623+
/// then lookup if there is a previousy created Root Signature decl.
3624+
///
3625+
/// Returns the identifier and if it was found
36223626
std::pair<IdentifierInfo *, bool>
36233627
ActOnStartRootSignatureDecl(StringRef Signature);
3628+
3629+
/// Creates the Root Signature decl of the parsed Root Signature elements
3630+
/// onto the AST and push it onto current Scope
36243631
void ActOnFinishRootSignatureDecl(
36253632
SourceLocation Loc, IdentifierInfo *DeclIdent,
36263633
SmallVector<llvm::hlsl::rootsig::RootElement> &Elements);

clang/lib/Parse/ParseDeclCXX.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4958,6 +4958,7 @@ void Parser::ParseMicrosoftRootSignatureAttributeArgs(ParsedAttributes &Attrs) {
49584958
return;
49594959
}
49604960

4961+
// Perform constructin of declaration
49614962
Actions.ActOnFinishRootSignatureDecl(RootSignatureLoc, DeclIdent,
49624963
RootElements);
49634964
}

0 commit comments

Comments
 (0)