[LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef
authorMatthias Gehre <gehre.matthias@gmail.com>
Mon, 19 Aug 2019 21:28:04 +0000 (23:28 +0200)
committerMatthias Gehre <gehre.matthias@gmail.com>
Thu, 16 Apr 2020 06:23:30 +0000 (08:23 +0200)
commit83d5131d87a6f929b21b54e3fc0f9636ff64c808
tree58e3acd1986d16c2451a54c9b960f55b06bc7281
parent0741dec27b049111094aec22f547651bb42a27ce
[LifetimeAnalysis] Add [[gsl::Pointer]] to llvm::StringRef

Summary:
This detected the bugs fixed in
  https://reviews.llvm.org/D66442
and
  https://reviews.llvm.org/D66440

The warning itself was implemented in
  https://reviews.llvm.org/D63954
  https://reviews.llvm.org/D64256
  https://reviews.llvm.org/D65120
  https://reviews.llvm.org/D65127
  https://reviews.llvm.org/D66152

Reviewers: zturner, mehdi_amini, gribozavr

Subscribers: dexonsmith, Szelethus, xazax.hun, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66443
llvm/include/llvm/ADT/StringRef.h