Skip to content

Suggest [[clang::lifetimebound]] for function parameters of reference type #169940

@usx95

Description

@usx95
const int& Identity(const int& a) {
  return a;
}

Suggest 'a' to be marked lifetimebound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:temporal-safetyIssue/FR relating to the lifetime analysis in Clang (-Wdangling, -Wreturn-local-addr)

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions