Skip to content

clang-tidy misc-use-internal-linkage false positive for function declaration without body #117488

@HerrCai0907

Description

@HerrCai0907

misc-use-internal-linkage should only warn for the function declaration with body.

It is a common usage in C++ to declare external function at the beginning.

void f();

void bar() {
  f();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions