summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-type.cpp
diff options
context:
space:
mode:
authorMukund Keshava <mkeshava@nvidia.com>2025-05-15 14:45:43 +0530
committerGitHub <noreply@github.com>2025-05-15 14:45:43 +0530
commited837e205f3e67c4ae112f544cfe486ca3cc8455 (patch)
treeec67d243bcea5c613d24c898c301051117497577 /source/slang/slang-check-type.cpp
parent49de1e8f60c698e9d524befacc988fb06574b234 (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-check-type.cpp')
0 files changed, 0 insertions, 0 deletions