Skip to content

Commit 5db790f

Browse files
committed
[clang][Parse][NFC] Make ParseOpenMPAttributeArgs() AttrName const
1 parent e994f84 commit 5db790f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,7 @@ class Parser : public CodeCompletionHandler {
28932893
return false;
28942894
}
28952895

2896-
void ParseOpenMPAttributeArgs(IdentifierInfo *AttrName,
2896+
void ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName,
28972897
CachedTokens &OpenMPTokens);
28982898

28992899
void ParseCXX11AttributeSpecifierInternal(ParsedAttributes &Attrs,

clang/lib/Parse/ParseDeclCXX.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4306,7 +4306,7 @@ Parser::TryParseCXX11AttributeIdentifier(SourceLocation &Loc,
43064306
}
43074307
}
43084308

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

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

0 commit comments

Comments
 (0)