Skip to content

CTags plugin does not always jump to a const #336

@anatol

Description

@anatol

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions