Skip to content

bugprone-unchecked-optional-access should support user-configurable std::optional-like classes #64037

Open
@carlosgalvezp

Description

@carlosgalvezp

Currently, the check hardcodes the following names for accepted std::optional-like classes:

  • std::optional
  • absl::optional
  • base::Optional

Recently, a patch is adding support for yet another project - folly::Optional.

It would be good to not hardcode these project-specific names inside the source code, and instead make this user-configurable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyclang:dataflowClang Dataflow Analysis framework - https://clang.llvm.org/docs/DataFlowAnalysisIntro.htmlcode-qualityenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions