[llvm-bugs] [Bug 47315] New: .cuh files are not treated as cuda files
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 26 00:58:03 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47315
Bug ID: 47315
Summary: .cuh files are not treated as cuda files
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: CUDA
Assignee: unassignedclangbugs at nondot.org
Reporter: alexander.weinrauch at gmail.com
CC: llvm-bugs at lists.llvm.org
The .cuh file extension is often used in cuda projects for header files which
contain cuda device code[1]. Visual Studio and CLion do also support and create
.cuh files.
Clang does not treat.cuh files as CUDA files. This causes clangd to not parse
.cuh files correctly if there is no .cu (cuda source file) with the same name
mentioned in compile_commands.json.
Treating .cuh as CUDA files should fix this problem, based on a discussion on
discord.
[1]https://www.file-extensions.org/cuh-file-extension
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200826/5fc7469b/attachment.html>
More information about the llvm-bugs
mailing list