Commit a0a3dcf
committed
Rounds 17-18: bool template args, PSketch template exclusion, namespace fixes
Parser:
- parseTemplateArg: BOOL_LITERAL (true/false) handled as template arg
- looksLikeFunctionPointerDeclarator: (*name) only matches when ( or [ follows
CodeGen:
- NamespaceDecl: inject using namespace ::std inside user namespace bodies
- PSketchInjector: skip template classes (templateParams non-empty)
CppBuild:
- namespace std{} specializations hoisted to preNs (global scope)
- Out-of-class function defs (X::f()) hoisted to namespace scope
- noexcept restored on final_suspend/initial_suspend in output
- NamespaceDecl: user namespaces emit inside Processing namespace
Processing.h:
- #include <coroutine> for C++20 coroutine support1 parent 81d492f commit a0a3dcf
4 files changed
Lines changed: 14 additions & 1 deletion
File tree
- mode
- src/java
- tools/cpp-parser/src/main/java/cppmode/parser/passes
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
570 | 575 | | |
571 | 576 | | |
572 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1921 | 1921 | | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | | - | |
| 1924 | + | |
| 1925 | + | |
1925 | 1926 | | |
1926 | 1927 | | |
1927 | 1928 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
0 commit comments