]> granicus.if.org Git - clang/commit
[clang] [Basic] Enable __has_feature(leak_sanitizer)
authorMichal Gorny <mgorny@gentoo.org>
Sun, 22 Sep 2019 20:55:01 +0000 (20:55 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 22 Sep 2019 20:55:01 +0000 (20:55 +0000)
commit0e3dc386e92f4b0b49922c5eb43252bcd3ffca88
treeb10f1bb40c7f0ebbc958781e4a188cdf6db99fe6
parent54dbd1f65ae900fb5e9665a03501f6cbed743e14
[clang] [Basic] Enable __has_feature(leak_sanitizer)

Add a 'leak_sanitizer' feature akin to existing '*_sanitizer' features
to let programmers switch code paths accounting for leak sanitizers
being enabled.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372527 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Features.def
test/Lexer/has_feature_leak_sanitizer.cpp [new file with mode: 0644]