Skip to content

ヘッダなどに現れる実装の無い関数宣言について #27

@maxfie1d

Description

@maxfie1d

下のソースでやってみて、プロトタイプ宣言も関数として認識されているが、
特に悪さをしているわけではないので、今のところ問題は見当たらない。

int add(int a, int b);

int f()
{
    return add(2, 3);
}

int add(int a, int b)
{
    return a + b;
}

int main(void)
{
    f();
    return 0;
}

変数テーブル

id file func var def use dvars pointers cfuncs
62d7b667 prototype-declaration.c:1 add int a 1@71f13dad
8e00c315 prototype-declaration.c:1 add int b 1@71f13dad
62d7b667 prototype-declaration.c:8 add int a 8@71f13dad 10@71f13dad
8e00c315 prototype-declaration.c:8 add int b 8@71f13dad 10@71f13dad

関数テーブル

id func_name kind file_path declare_range
ad5c0f9b main user-defined prototype-declaration.c 13-17
71f13dad add user-defined prototype-declaration.c 8-11
59f047a3 f user-defined prototype-declaration.c 3-6

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