-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(cpp) Highlight all function dispatches (#3005)
* convert cpp built-ins to relevance hints (and match ALL dispatches) * fix arduino to use function dispatch also * document the new keywords `_ident` behavior
- Loading branch information
1 parent
9d17540
commit d2f3ab5
Showing
9 changed files
with
170 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<span class="hljs-function"><span class="hljs-keyword">int</span> <span class="hljs-title">main</span><span class="hljs-params">()</span> </span>{ | ||
A a = <span class="hljs-keyword">new</span> A(); | ||
<span class="hljs-keyword">int</span> b = b * sum(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>); | ||
<span class="hljs-keyword">if</span> (a->check1()) | ||
A a = <span class="hljs-keyword">new</span> <span class="hljs-built_in">A</span>(); | ||
<span class="hljs-keyword">int</span> b = b * <span class="hljs-built_in">sum</span>(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>); | ||
<span class="hljs-keyword">if</span> (a-><span class="hljs-built_in">check1</span>()) | ||
<span class="hljs-keyword">return</span> <span class="hljs-number">3</span>; | ||
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (a->check2()) | ||
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> (a-><span class="hljs-built_in">check2</span>()) | ||
<span class="hljs-keyword">return</span> <span class="hljs-number">4</span>; | ||
<span class="hljs-keyword">return</span> a->result(); | ||
<span class="hljs-keyword">return</span> a-><span class="hljs-built_in">result</span>(); | ||
} |
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