Make "Follow symbol under cursor" find definitions in C header files from library source dir
Unsolved
Qt Creator and other tools
-
Hello,
My CPP/QML project includes the Lexbor C library, which it first builds (as part of the project).Then, in my
main.cpp
, I have something like:lxb_status_t find_callback(lxb_dom_node_t *node, lxb_css_selector_specificity_t *spec, void *ctx) { ... }
When I follow the symbol
lxb_dom_node_t
, Qt Qreator correctly leads me to:/usr/local/include/lexbor/dom/interface.h
typedef struct lxb_dom_node lxb_dom_node_t;
However, when I try to follow
lxb_dom_node
, it does not work.
This definition is located in the following file in the source directory
of the library:~/MyProject/lexbor/source/lexbor/dom/interfaces/node.h`
How can I make Qt Creator find this via the "Follow ..." functionality?
Thanks!
-
Hi
You can try adding
INCLUDEPATH += ~/MyProject/lexbor/source/lexbor/dom/interfaces
and see.
Depending what you have already