[all-commits] [llvm/llvm-project] 5260bc: Allow arbitrary capability name in Thread Safety A...

AaronBallman via All-commits all-commits at lists.llvm.org
Tue Jan 21 12:44:52 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5260bc2497bb593ed4a01de5cfe84ed6f7b529b1
      https://github.com/llvm/llvm-project/commit/5260bc2497bb593ed4a01de5cfe84ed6f7b529b1
  Author: Etienne Pierre-Doray <etiennep at chromium.org>
  Date:   2020-01-21 (Tue, 21 Jan 2020)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/Sema/attr-capabilities.c

  Log Message:
  -----------
  Allow arbitrary capability name in Thread Safety Analysis

Restricting the names of capabilities to only "role" or "mutex" makes
for awkward diagnostic text, such as with:
https://chromium-review.googlesource.com/c/chromium/src/+/1948098/19/base/sequence_checker_unittest.nc#33




More information about the All-commits mailing list