[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 5 19:06:36 PDT 2018


leonardchan updated this revision to Diff 164136.
leonardchan added a comment.

- Push and pop a new ExpressionEvaluationContext when we enter and exit a compound statement.
- Remove Start/StopCheckingNoderef functions since we can now warn whenever we pop


Repository:
  rC Clang

https://reviews.llvm.org/D49511

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  include/clang/Basic/DiagnosticGroups.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Sema.h
  lib/AST/TypePrinter.cpp
  lib/Sema/SemaExpr.cpp
  lib/Sema/SemaExprMember.cpp
  lib/Sema/SemaStmt.cpp
  lib/Sema/SemaType.cpp
  test/Frontend/noderef.c
  test/Frontend/noderef_on_non_pointers.cpp
  test/Frontend/noderef_on_non_pointers.m
  test/Frontend/noderef_templates.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49511.164136.patch
Type: text/x-patch
Size: 30051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180906/92b7da3b/attachment-0001.bin>


More information about the cfe-commits mailing list