[PATCH] D65127: Even more warnings utilizing gsl::Owner/gsl::Pointer annotations

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 17:38:11 PDT 2019


xazax.hun created this revision.
xazax.hun added reviewers: gribozavr, rsmith, mgehre.
xazax.hun added a project: clang.
Herald added subscribers: cfe-commits, Charusso, gamesh411, Szelethus, dkrupp, rnkovacs.
xazax.hun added a parent revision: D65120: More warnings regarding gsl::Pointer and gsl::Owner attributes.

This patch introduces even more warnings some of them are very compelling. Look at the loop example, it supposed to catch a lot of errors early.

This patch has not been tested on real world code yet, I plan to update this revision with the findings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65127

Files:
  clang/lib/Sema/SemaInit.cpp
  clang/test/Sema/warn-lifetime-analysis-nocfg.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65127.211235.patch
Type: text/x-patch
Size: 5510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190723/c6eee9bc/attachment.bin>


More information about the cfe-commits mailing list