-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cpp): Allow declaring multiple functions and parenthetical initializers #3155
Changes from all commits
9bb9692
fd063b9
2c78543
2f76c97
a175948
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ test(); | |
|
||
void A(): a(10) {} | ||
explicit A(): a(10) {} | ||
|
||
extern void f(int), g(char); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<span class="hljs-function">string <span class="hljs-title">a</span><span class="hljs-params">(<span class="hljs-string">"hello"</span>)</span>, <span class="hljs-title">b</span><span class="hljs-params">(<span class="hljs-string">"world"</span>)</span></span>; | ||
<span class="hljs-function">vector<<span class="hljs-keyword">int</span>> <span class="hljs-title">u</span><span class="hljs-params">(<span class="hljs-number">1</span>)</span>, <span class="hljs-title">v</span><span class="hljs-params">(<span class="hljs-number">2</span>)</span></span>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you think it is declaring four functions? To me I think it's initializing four variables. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you have found a potential problem please open a new issue rather than commenting on a 3 year old issue. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
string a("hello"), b("world"); | ||
vector<int> u(1), v(2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL.