]> granicus.if.org Git - clang/commit
[analyzer] [RetainCountChecker] [NFC] Refactor the way attributes are handled
authorGeorge Karpenkov <ekarpenkov@apple.com>
Thu, 10 Jan 2019 18:14:51 +0000 (18:14 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Thu, 10 Jan 2019 18:14:51 +0000 (18:14 +0000)
commit343a38646a56b7167a779489ac5f01875609ef02
tree6f477c3bc84b0aadd5ce413828b6c1e46ac58fd8
parenta8a2d77577f444f69f48b356e0616cc19887b2d1
[analyzer] [RetainCountChecker] [NFC] Refactor the way attributes are handled

Make sure all checks for attributes go through a centralized function,
which checks whether attribute handling is enabled, and performs
validation.  The type of the attribute is returned.

Sadly, metaprogramming is required as attributes have no sensible static
getters.

Differential Revision: https://reviews.llvm.org/D56222

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350862 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/RetainSummaryManager.h
lib/StaticAnalyzer/Core/RetainSummaryManager.cpp