LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 48097 - [C++4OpenCL] support new file extension in C++ mode
Summary: [C++4OpenCL] support new file extension in C++ mode
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: OpenCL (show other bugs)
Version: trunk
Hardware: PC All
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-06 04:50 PST by Anastasia Stulova
Modified: 2021-04-14 06:12 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anastasia Stulova 2020-11-06 04:50:04 PST
Similar to C and C++ where file suffixes are different (c vs cpp), clang should support two different file extensions for OpenCL C and C++ for OpenCL.
Comment 1 David Blaikie 2020-11-06 09:57:05 PST
Is there any particular precedent (other compilers that support/use any particular extensions)?
Comment 2 Anastasia Stulova 2020-11-06 10:12:45 PST
Not that I am aware of. The idea is to mirror C/C++ setup.
Comment 3 Anastasia Stulova 2021-04-14 06:12:25 PDT
This has been committed to the branch main https://reviews.llvm.org/D96771.