Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CUDA header file (.hcu, .cuh) #694

Closed
DiTurr opened this issue Nov 22, 2022 · 3 comments
Closed

Support for CUDA header file (.hcu, .cuh) #694

DiTurr opened this issue Nov 22, 2022 · 3 comments

Comments

@DiTurr
Copy link

DiTurr commented Nov 22, 2022

Hi,

it would be good to add support for CUDA header files (.hcu, .cuh). It should not be a big change I think because it uses the commenting method 'C/C++ Header'

  • language name: CUDA header files
  • file extension(s): .hcu, .cuh
  • method(s) of commenting text: 'C/C++ Header'
@jolkdarr
Copy link
Contributor

No processing of cu extension?

@DiTurr
Copy link
Author

DiTurr commented Nov 24, 2022

Correction .cuh is supported but not .hcu.

I think .hcu is also an accepted extension for CUDA header files.

@AlDanial
Copy link
Owner

cloc already supports CUDA:

./cloc-1.94.pl --explain CUDA
CUDA
    filter rm_comments_in_strings  "  /*  */
    filter rm_comments_in_strings  "  //  
    filter call_regexp_common  C++
    extensions: cu, cuh

Is it worthwhile to separate the header files to their own category, CUDA Header?

@AlDanial AlDanial closed this as completed Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants