Skip to content

__clang_analyzer__ for clangd #10

Closed
@calewis

Description

@calewis

Enable the __clang_analyzer__ definition for clangd. I'm not sure this is really the correct thing to do, but as we have things set up now it is the only way to get ensure-kokkos-function to work correctly with clangd.

This is because Kokkos only annotates KOKKOS_.*FUNCITON when the __clang_analyzer__ definition is detected.

I think a longer term solution is to add something like __kokkos_analyzer__ to clangd/clang-tidy so that we know we are in a context that Kokkos definitions should be modified.

@DavidPoliakoff thoughts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions