swiftlang/swift
GitHub で見る[SR-540] eliminate the .cpp.gyb files from the source tree
Open
#43,157 opened on 2016年1月14日
bugcompilergood first issue
説明
| Previous ID | SR-540 |
| Radar | None |
| Original Reporter | @lattner |
| Type | Bug |
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, StarterBug |
| Assignee | None |
| Priority | Medium |
md5: ff02b1c09cc812ba86f097ddd5c3cf2d
Issue Description:
Gyb is a necessary artifact used in the standard library and test suite due to Swift not having a preprocessor. C++ on the other hand DOES have a preprocessor, so we should definitely not use gyb for .cpp files, we should use ".def" files consistently. Unfortunately we are using it in a couple of cases:
lib/Basic/UnicodeExtendedGraphemeClusters.cpp.gyb
stdlib/public/stubs/UnicodeExtendedGraphemeClusters.cpp.gyb
unittests/Basic/UnicodeGraphemeBreakTest.cpp.gyb
These should switch to using the C preprocessor.