[all-commits] [llvm/llvm-project] 2f0630: [clang-tidy] Add folly::Optional to unchecked-opti...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Mon Jul 24 12:43:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f0630f8bc91e81fd5948e82164cf82ae595caf2
      https://github.com/llvm/llvm-project/commit/2f0630f8bc91e81fd5948e82164cf82ae595caf2
  Author: Anton Dukeman <antondukeman at fb.com>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone/unchecked-optional-access.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/unchecked-optional-access/folly/types/Optional.h
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access.cpp
    M clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp

  Log Message:
  -----------
  [clang-tidy] Add folly::Optional to unchecked-optional-access

The unchecked-optional-access check identifies attempted value
unwrapping without checking if the value exists. These changes extend
that support to checking folly::Optional.

Reviewed By: gribozavr2

Differential Revision: https://reviews.llvm.org/D155890




More information about the All-commits mailing list