diff options
| author | Mukund Keshava <mkeshava@nvidia.com> | 2025-05-15 14:45:43 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-15 14:45:43 +0530 |
| commit | ed837e205f3e67c4ae112f544cfe486ca3cc8455 (patch) | |
| tree | ec67d243bcea5c613d24c898c301051117497577 /source/slang/slang-ir-clone.cpp | |
| parent | 49de1e8f60c698e9d524befacc988fb06574b234 (diff) | |
Rename 'main' on some backends (#7105)
* Rename 'main' on some backednds
Fixes #5542
Some backends like cuda, metal, cpu do not allow 'main' as the entry
point. This commit adds a new warning that is emitted when a program
uses main as the entry point. In addition to emitting the warning, it
internally renames the entry point to "main_". It also adds a test to
check these for the three backends.
* format code
* move test to diagnostics
* rename test to diagnostic
* generate unique name
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-ir-clone.cpp')
0 files changed, 0 insertions, 0 deletions
