diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-12 16:46:25 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-12 16:46:25 +0000 |
commit | 573f6313b0a82039b804bf0afad05f8fa3ef218e (patch) | |
tree | ffab41fb4f5aa9abd1e9604b44bd826f383abe64 /include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h | |
parent | 03524fb08c75545490c9003bbf34adab6bc83d18 (diff) |
BugReporter: Use ilist_half_embedded_sentinel_traits, NFC
This avoids duplicated code with llvm/ADT/ilist.h. No functionality
change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h index 57c73fd6ec..02f56fc6bf 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h @@ -315,22 +315,9 @@ public: } // end clang namespace namespace llvm { - template<> struct ilist_traits<clang::ento::BugReport> - : public ilist_default_traits<clang::ento::BugReport> { - clang::ento::BugReport *createSentinel() const { - return static_cast<clang::ento::BugReport *>(&Sentinel); - } - void destroySentinel(clang::ento::BugReport *) const {} - - clang::ento::BugReport *provideInitialHead() const { - return createSentinel(); - } - clang::ento::BugReport *ensureHead(clang::ento::BugReport *) const { - return createSentinel(); - } - private: - mutable ilist_half_node<clang::ento::BugReport> Sentinel; - }; +template <> +struct ilist_sentinel_traits<clang::ento::BugReport> + : public ilist_half_embedded_sentinel_traits<clang::ento::BugReport> {}; } namespace clang { |