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: unassignedclangb...@nondot.org
          Reporter: alexander.weinra...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to