Skip to content

Commit

Permalink
[clang][Parse][NFC] Make ParseOpenMPAttributeArgs() AttrName const
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Sep 28, 2023
1 parent e994f84 commit 5db790f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Parse/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -2893,7 +2893,7 @@ class Parser : public CodeCompletionHandler {
return false;
}

void ParseOpenMPAttributeArgs(IdentifierInfo *AttrName,
void ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName,
CachedTokens &OpenMPTokens);

void ParseCXX11AttributeSpecifierInternal(ParsedAttributes &Attrs,
Expand Down
4 changes: 2 additions & 2 deletions clang/lib/Parse/ParseDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4306,7 +4306,7 @@ Parser::TryParseCXX11AttributeIdentifier(SourceLocation &Loc,
}
}

void Parser::ParseOpenMPAttributeArgs(IdentifierInfo *AttrName,
void Parser::ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName,
CachedTokens &OpenMPTokens) {
// Both 'sequence' and 'directive' attributes require arguments, so parse the
// open paren for the argument list.
Expand Down Expand Up @@ -4344,7 +4344,7 @@ void Parser::ParseOpenMPAttributeArgs(IdentifierInfo *AttrName,
// * An identifier (omp) for the attribute namespace followed by ::
// * An identifier (directive) or an identifier (sequence).
SourceLocation IdentLoc;
IdentifierInfo *Ident = TryParseCXX11AttributeIdentifier(IdentLoc);
const IdentifierInfo *Ident = TryParseCXX11AttributeIdentifier(IdentLoc);

// If there is an identifier and it is 'omp', a double colon is required
// followed by the actual identifier we're after.
Expand Down

0 comments on commit 5db790f

Please sign in to comment.