]> granicus.if.org Git - clang/commit
[Lexer] Add udefined_behavior_sanitizer feature
authorLeonard Chan <leonardchan@google.com>
Sat, 22 Sep 2018 01:03:16 +0000 (01:03 +0000)
committerLeonard Chan <leonardchan@google.com>
Sat, 22 Sep 2018 01:03:16 +0000 (01:03 +0000)
commitd05cbec4c2c7fcf52a428d3253ca0c97662d7285
tree12f9f818881e738cb5963c4574a81d84b80aabe1
parent167b402df58ab0d972f5a67f46ce2f30c68f82ae
[Lexer] Add udefined_behavior_sanitizer feature

This can be used to detect whether the code is being built with UBSan using
the __has_feature(undefined_behavior_sanitizer) predicate.

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

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