clighter icon indicating copy to clipboard operation
clighter copied to clipboard

issues associated to templates

Open Kannen opened this issue 9 years ago • 3 comments

Hello

Thank you realy for this project. I am realy found of Clighter, I discorved it a few days ago, and while trying to define formating for the clighter highlight groups i find some bugs or opportunities of enhancement I would like to submit to you.

  1. clighterDecl highlight group is some time associated to template parameters and template class name. In the picture below clighterDecl is in red, other from clighter are gray:

clighterdecl

Can you make a group for non type template parameter like the parameter I above?

  1. clighterFieldDecl is associated with non class template variables. In the picture below clighterFieldDecl is in red, the other clighter highlight groups are gray:

clighterfielddecl

Can you create these two highlight groups:

  • one for reference to type template parameter parameter.
  • an other one for reference to non type template parameter.

I think it will a great enhancement for some one (like me) who use oftenly templates metaprograming!!

  1. clighterTemplateTypeParameter does not work with variable template:

clightertemplatetypeparameter

Thanks!

Kannen avatar Aug 19 '15 17:08 Kannen

hi,

for picture 1 & 3, the cursur type is given by libclang, so they won't be fix for picture 2, clighterTemplateNoneTypeParameter will be added into custom groups

bbchung avatar Aug 20 '15 14:08 bbchung

Hi is it possible to add highlight groups clighterTemplateTypeParameterRef and clighterTemplateNonTypeParameterRef? I think it could be helpfull because it will help to see which variables are influenced by template parameter.

Kannen avatar Aug 20 '15 22:08 Kannen

no, clang don't provide these kinds for current

bbchung avatar Aug 22 '15 16:08 bbchung