-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support variadic functions and variadic function types
- Loading branch information
1 parent
e0a0547
commit d456f87
Showing
13 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using T = void(...); | ||
|
||
using U = void(int, ...); | ||
|
||
void f(...); | ||
|
||
void g(int, ...); | ||
|
||
template<typename A = void(...), typename B = void(int, ...)> | ||
struct C; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mrdocs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdocs/raw/develop/mrdocs.rnc"> | ||
<namespace id="//////////////////////////8="> | ||
<alias name="T" id="PvNOREc+JWxdkVgvSz+jC45IbGQ="> | ||
<file path="variadic-function.cpp" line="1" class="def"/> | ||
<type class="function" is-variadic="1"> | ||
<return-type name="void"/> | ||
</type> | ||
</alias> | ||
<alias name="U" id="h6hupdyuT6SfsCGFl6UUFGtvrcc="> | ||
<file path="variadic-function.cpp" line="3" class="def"/> | ||
<type class="function" is-variadic="1"> | ||
<return-type name="void"/> | ||
<param-type name="int"/> | ||
</type> | ||
</alias> | ||
<function name="f" id="CMaAySU4txrIlGl6edqWDSabBRA="> | ||
<file path="variadic-function.cpp" line="5"/> | ||
<attr id="is-variadic"/> | ||
</function> | ||
<function name="g" id="lldWvRg9y+NwRnDpK3x2NF9+e08="> | ||
<file path="variadic-function.cpp" line="7"/> | ||
<attr id="is-variadic"/> | ||
<param> | ||
<type name="int"/> | ||
</param> | ||
</function> | ||
<template> | ||
<tparam name="A" class="type" default="void(...)"/> | ||
<tparam name="B" class="type" default="void(int, ...)"/> | ||
<struct name="C" id="8nYw0KA23eAszqSOs0wOXAD1DYQ="> | ||
<file path="variadic-function.cpp" line="10"/> | ||
</struct> | ||
</template> | ||
</namespace> | ||
</mrdocs> |