Skip to content

Suggest [[clang::lifetimebound]] for function parameters of view type #169939

@usx95

Description

@usx95
std::string_view Select(std::string_view a) {
// 'a' can be annotated as lifetimebound
    return a;
} 

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