I use Sublime3 with CTags plugin.
Here is a part of Linux code, file arch/x86/include/asm/page_types.h:
#include <linux/mem_encrypt.h>
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))
Here is generated .tags file
PAGE_SHARED arch/x86/include/asm/pgtable_types.h /^#define PAGE_SHARED /;" d
PAGE_SHARED_EXEC arch/x86/include/asm/pgtable_types.h /^#define PAGE_SHARED_EXEC /;" d
PAGE_SHIFT arch/x86/include/asm/page_types.h /^#define PAGE_SHIFT /;" d
PAGE_SHIFT include/asm-generic/page.h /^#define PAGE_SHIFT /;" d
PAGE_SHIFT_4K drivers/infiniband/hw/bnxt_re/qplib_fp.h
When I want to jump to PAGE_SHIFT the plugin shows me 2 possible files as expected. I select arch/x86/include/asm/page_types.h it opens the file but for some reason cursor does not jump to the constant definition.
I use Sublime3 with CTags plugin.
Here is a part of Linux code, file
arch/x86/include/asm/page_types.h:Here is generated
.tagsfileWhen I want to jump to
PAGE_SHIFTthe plugin shows me 2 possible files as expected. I selectarch/x86/include/asm/page_types.hit opens the file but for some reason cursor does not jump to the constant definition.