[PATCH] D93102: [Clang][Sema] Detect section type conflicts between functions and variables

Tomas Matheson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 16 09:12:08 PST 2020


tmatheson updated this revision to Diff 312232.
tmatheson added a comment.
Herald added a subscriber: jdoerfert.

Extended to Objective-C methods and properties.
Added suggested C tests, C++ template function test and Objective-C tests.
I had to removed PSF_Implicit flag so that cases where the function was declared before the global variable were caught.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93102/new/

https://reviews.llvm.org/D93102

Files:
  clang/include/clang/AST/ASTContext.h
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaAttr.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Sema/attr-section.c
  clang/test/SemaCXX/attr-section.cpp
  clang/test/SemaObjC/method-attributes.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93102.312232.patch
Type: text/x-patch
Size: 6809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201216/e4863486/attachment.bin>


More information about the cfe-commits mailing list