Skip to content

How to add gcc extension grammer support like __attribute__() #121

Description

@hakureiR-eimu

Meet with issue when parsing linux kernel source code that parse __aligned() as function
like
`
struct page {

}
/*

  • The struct page can be forced to be double word aligned so that atomic ops
  • on double words work. The SLUB allocator can make use of such a feature.
    */
    #ifdef CONFIG_HAVE_ALIGNED_STRUCT_PAGE
    __aligned(2 * sizeof(unsigned long))
    #endif
    ;
    `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions