Skip to content

lint(libc_mirror): macro-generated libc-named functions are not checked #4850

Closed

Description

@zackees

LibcMirrorChecker masks preprocessor lines, so a #define whose body declares a libc-named function in fl (for example #define FL_DECL(n) void* n(void*) used as FL_DECL(memcpy)) is not seen. The adl_barrier.cpp compile test only catches it if the generated function is a wrapper that test already calls. Options: flag invocations of function-like macros whose arguments are reserved libc names inside fl, or scan #define bodies for declarator patterns. Parent: #4844.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions