[all-commits] [llvm/llvm-project] 98550d: [clang-tidy] Add configuration option to bugprone-...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Thu Dec 15 07:43:44 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98550df7b7bbce0e38a1ec558287d759163c64ba
      https://github.com/llvm/llvm-project/commit/98550df7b7bbce0e38a1ec558287d759163c64ba
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.h
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access-ignore-smart.cpp

  Log Message:
  -----------
  [clang-tidy] Add configuration option to bugprone-unchecked-optional-access check.

The underlying model already supports ignoring accesses to optionals through
smart pointers. This patch exposes that option through ClangTidy's configuration
options.

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




More information about the All-commits mailing list