diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 15:23:05 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 15:23:05 -0500 |
| commit | 5951b79af40212754071157596b8aebbe2414ffb (patch) | |
| tree | 9e2377dddfec47701210dd4135d0c0f1de12926d /src/parser.cpp | |
| parent | 0a9daeb37e997ff75dcd16d1fc3b4cc143314e85 (diff) | |
| download | zig-5951b79af40212754071157596b8aebbe2414ffb.tar.gz zig-5951b79af40212754071157596b8aebbe2414ffb.zip | |
remove stdcallcc, extern, nakedcc from stage1; zig fmt rewrites
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 65ea9ac203..f6f5811e63 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2117,20 +2117,10 @@ static AstNode *ast_parse_callconv(ParseContext *pc) { } // FnCC -// <- KEYWORD_nakedcc -// / KEYWORD_stdcallcc -// / KEYWORD_extern +// <- KEYWORD_extern // / KEYWORD_async static Optional<AstNodeFnProto> ast_parse_fn_cc(ParseContext *pc) { AstNodeFnProto res = {}; - if (eat_token_if(pc, TokenIdKeywordNakedCC) != nullptr) { - res.is_nakedcc = true; - return Optional<AstNodeFnProto>::some(res); - } - if (eat_token_if(pc, TokenIdKeywordStdcallCC) != nullptr) { - res.is_stdcallcc = true; - return Optional<AstNodeFnProto>::some(res); - } if (eat_token_if(pc, TokenIdKeywordAsync) != nullptr) { res.is_async = true; return Optional<AstNodeFnProto>::some(res); |
