Skip to content

Commit 49ef393

Browse files
committed
Rename DNP to DirParser
1 parent ca31af4 commit 49ef393

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,23 @@ class DeclDirectiveListParserHelper final {
5757
} // namespace
5858

5959
static OpenMPDirectiveKind parseOpenMPDirectiveKind(Parser &P) {
60-
static const DirectiveNameParser DNP;
60+
static const DirectiveNameParser DirParser;
6161

62-
const DirectiveNameParser::State *S = DNP.initial();
62+
const DirectiveNameParser::State *S = DirParser.initial();
6363

6464
Token Tok = P.getCurToken();
6565
if (Tok.isAnnotation())
6666
return OMPD_unknown;
6767

68-
S = DNP.consume(S, P.getPreprocessor().getSpelling(Tok));
68+
S = DirParser.consume(S, P.getPreprocessor().getSpelling(Tok));
6969
if (S == nullptr)
7070
return OMPD_unknown;
7171

7272
while (!Tok.isAnnotation()) {
7373
OpenMPDirectiveKind DKind = S->Value;
7474
Tok = P.getPreprocessor().LookAhead(0);
7575
if (!Tok.isAnnotation()) {
76-
S = DNP.consume(S, P.getPreprocessor().getSpelling(Tok));
76+
S = DirParser.consume(S, P.getPreprocessor().getSpelling(Tok));
7777
if (S == nullptr)
7878
return DKind;
7979
P.ConsumeToken();

0 commit comments

Comments
 (0)