Skip to content

Commit

Permalink
[OpenACC] Rename ParseOpenACCDirective to ParseOpenACCDirectiveDecl
Browse files Browse the repository at this point in the history
The former name is more useful as a callee of the function in a future
patch, so as suggested in that review, move the rename here.
  • Loading branch information
erichkeane committed Nov 17, 2023
1 parent 2276071 commit 7d1a9e8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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 @@ -3531,7 +3531,7 @@ class Parser : public CodeCompletionHandler {
/// Placeholder for now, should just ignore the directives after emitting a
/// diagnostic. Eventually will be split into a few functions to parse
/// different situations.
DeclGroupPtrTy ParseOpenACCDirective();
DeclGroupPtrTy ParseOpenACCDirectiveDecl();
StmtResult ParseOpenACCDirectiveStmt();

private:
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParseDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4735,7 +4735,7 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc,
}

if (Tok.is(tok::annot_pragma_openacc)) {
ParseOpenACCDirective();
ParseOpenACCDirectiveDecl();
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParseDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3430,7 +3430,7 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclarationWithPragmas(
return ParseOpenMPDeclarativeDirectiveWithExtDecl(
AS, AccessAttrs, /*Delayed=*/true, TagType, TagDecl);
case tok::annot_pragma_openacc:
return ParseOpenACCDirective();
return ParseOpenACCDirectiveDecl();

default:
if (tok::isPragmaAnnotation(Tok.getKind())) {
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Parse/ParseOpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

using namespace clang;

Parser::DeclGroupPtrTy Parser::ParseOpenACCDirective() {
Parser::DeclGroupPtrTy Parser::ParseOpenACCDirectiveDecl() {
Diag(Tok, diag::warn_pragma_acc_unimplemented);
SkipUntil(tok::annot_pragma_openacc_end);
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Parse/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ Parser::ParseExternalDeclaration(ParsedAttributes &Attrs,
return ParseOpenMPDeclarativeDirectiveWithExtDecl(AS, Attrs);
}
case tok::annot_pragma_openacc:
return ParseOpenACCDirective();
return ParseOpenACCDirectiveDecl();
case tok::annot_pragma_ms_pointers_to_members:
HandlePragmaMSPointersToMembers();
return nullptr;
Expand Down

0 comments on commit 7d1a9e8

Please sign in to comment.