diff options
author | erichkeane <ekeane@nvidia.com> | 2023-11-17 07:28:33 -0800 |
---|---|---|
committer | erichkeane <ekeane@nvidia.com> | 2023-11-17 07:28:33 -0800 |
commit | 7d1a9e81b0b59d020a52c789d659acb5ee5fdc41 (patch) | |
tree | 6596018c74a9900ec7e86220a71ab36910b59fc1 /clang | |
parent | 227607190e68c303920bcbd148043dbb1aa5d3b1 (diff) | |
download | llvm-7d1a9e81b0b59d020a52c789d659acb5ee5fdc41.zip llvm-7d1a9e81b0b59d020a52c789d659acb5ee5fdc41.tar.gz llvm-7d1a9e81b0b59d020a52c789d659acb5ee5fdc41.tar.bz2 |
[OpenACC] Rename ParseOpenACCDirective to ParseOpenACCDirectiveDecl
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.
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Parse/Parser.h | 2 | ||||
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Parse/ParseDeclCXX.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Parse/ParseOpenACC.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h index 4631e9a..2f56da8 100644 --- a/clang/include/clang/Parse/Parser.h +++ b/clang/include/clang/Parse/Parser.h @@ -3531,7 +3531,7 @@ public: /// 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: diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index d86f477..8cb5b09 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -4735,7 +4735,7 @@ void Parser::ParseStructUnionBody(SourceLocation RecordLoc, } if (Tok.is(tok::annot_pragma_openacc)) { - ParseOpenACCDirective(); + ParseOpenACCDirectiveDecl(); continue; } diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index e12215d..d9125955 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -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())) { diff --git a/clang/lib/Parse/ParseOpenACC.cpp b/clang/lib/Parse/ParseOpenACC.cpp index 2fba6cd..ab79051 100644 --- a/clang/lib/Parse/ParseOpenACC.cpp +++ b/clang/lib/Parse/ParseOpenACC.cpp @@ -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; diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 41b7462..9eed088 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -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; |