I had a question about references (Ctrl+/) working with my inline functions. Basically, if I declare an inline in a header as "static inline" (as opposed to simply "inline") I do not get references outside the current file:
--- inlines.h ---
static inline void *inlineFunc (someStruct *arg)
{
// function details
}
--- file1.c ---
// call to inline function
buffer = inlineFunc (arg);
--- file2.c ---
// call to inline function
buffer = inlineFunc (arg);
If I do a references on inlineFunc from file1.c, I only get the file1.c and inlines.h references (i.e. file2.c does not show up). The same thing happens when I do a references on inlineFunc from file2.c. If I do a references from inlines.h, I get what is expected: file1.c, file2.c and inlines.h references. If I make this non-static, it behaves as expected. It seems that SlickEdit is treating this inline function as if it were a static function in a .c file that can only be accessed in that file. However, it is an inline in a header that can be used in multiple source files. Thus, it seems like references in one .c file should show all the references, including other .c files. Is there a workaround in SlickEdit (besides simply issuing the references from the header file) for this so I don't have to change my source code?
Thanks in advance!