doxdocgen icon indicating copy to clipboard operation
doxdocgen copied to clipboard

Support comment for a function which after macro expansion

Open PowerfulCat opened this issue 4 years ago • 1 comments
trafficstars

#define xheader(ret,name)                                                           \
        template<                                                                       \
            inc::can_unified_seqlize seq_t,                                             \
            class                    item_t  = inc::item_origin_of<seq_t>,              \
            class                    cmp_t   = decltype(inc::default_compare<item_t>)   \
        >                                                                               \
        requires(                                                                       \
            inc::can_compare<cmp_t, item_t> == true                                     \
        )                                                                               \
        inline ret name(                                                                \
            seq_t                       const & seq,                                    \
            inc::item_origin_of<seq_t>  const & value,                                  \
            cmp_t                       const & compare = inc::default_compare<item_t>)

/**
 * .......
 * .......
 */
xheader(int, func_a){
    ...
}


/**
 * .......
 * .......
 */
xheader(int, func_b){
    ...
}


/**
 * .......
 * .......
 */
xheader(int, func_c){
    ...
}

I want use the macro function xheader to generate the redundant code, but it hint nothing when i put func_a( in vscode.

PowerfulCat avatar Jul 28 '21 11:07 PowerfulCat

Thank you for your suggestion. This will be possible if/once the plugin supports a language server for parsing instead of a custom lexer which is not going to happen soon.

cschlosser avatar Jul 31 '21 20:07 cschlosser