bugprone-unchecked-optional-access should support user-configurable std::optional-like classes #64037
Labels
clang:dataflow
Clang Dataflow Analysis framework - https://clang.llvm.org/docs/DataFlowAnalysisIntro.html
clang-tidy
code-quality
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
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.
The text was updated successfully, but these errors were encountered: