Commit 7cfbe57
committed
Fix: Remove IsCustomFunction bitfield to avoid size overflow
The IsCustomFunction bit pushed CXXConstructorDeclBitfields over the
64-bit limit, causing static assertion failures.
For Phase 1, we only need to parse the 'custom' keyword correctly, which
we can do without storing the flag in FunctionDecl. The parser recognizes
the keyword and DeclSpec tracks it during parsing.
Changes:
- Removed IsCustomFunction bit from FunctionDeclBitfields
- Reverted NumFunctionDeclBits back to 32
- Removed isCustomFunction()/setCustomFunction() accessor methods
- Commented out custom flag usage in SemaDecl.cpp with TODO for Phase 2
Parser and DeclSpec changes remain intact, so the keyword is still
recognized and validated. We'll add proper AST storage in Phase 2 when
implementing the transformation, potentially using an attribute or
external tracking mechanism.1 parent 6207c5b commit 7cfbe57
File tree
3 files changed
+3
-14
lines changed- clang
- include/clang/AST
- lib/Sema
3 files changed
+3
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2904 | 2904 | | |
2905 | 2905 | | |
2906 | 2906 | | |
2907 | | - | |
2908 | | - | |
2909 | | - | |
2910 | | - | |
2911 | | - | |
2912 | | - | |
2913 | | - | |
2914 | | - | |
2915 | 2907 | | |
2916 | 2908 | | |
2917 | 2909 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
1745 | | - | |
1746 | | - | |
1747 | 1745 | | |
1748 | 1746 | | |
1749 | 1747 | | |
| |||
1834 | 1832 | | |
1835 | 1833 | | |
1836 | 1834 | | |
1837 | | - | |
| 1835 | + | |
1838 | 1836 | | |
1839 | 1837 | | |
1840 | 1838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10088 | 10088 | | |
10089 | 10089 | | |
10090 | 10090 | | |
10091 | | - | |
10092 | | - | |
10093 | | - | |
| 10091 | + | |
| 10092 | + | |
10094 | 10093 | | |
10095 | 10094 | | |
10096 | 10095 | | |
| |||
0 commit comments