Allow to specify multiple -fsanitize-blacklist= arguments.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 4 Feb 2015 17:40:08 +0000 (17:40 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 4 Feb 2015 17:40:08 +0000 (17:40 +0000)
commita511cdd247777d947a2850d3e9c53d0bda19d6d5
tree6d550133e7d4403b9c7d99397eaa3548497550e9
parentb9b8027ceec93ad9ed02d5b68130ccf5f06ae30b
Allow to specify multiple -fsanitize-blacklist= arguments.

Summary:
Allow user to provide multiple blacklists by passing several
-fsanitize-blacklist= options. These options now don't override
default blacklist from Clang resource directory, which is always
applied (which fixes PR22431).

-fno-sanitize-blacklist option now disables all blacklists that
were specified earlier in the command line (including the default
one).

This change depends on http://reviews.llvm.org/D7367.

Test Plan: regression test suite

Reviewers: timurrrr

Subscribers: cfe-commits, kcc, pcc

Differential Revision: http://reviews.llvm.org/D7368

llvm-svn: 228156
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Basic/SanitizerBlacklist.h
clang/include/clang/Driver/SanitizerArgs.h
clang/lib/AST/ASTContext.cpp
clang/lib/Basic/LangOptions.cpp
clang/lib/Basic/SanitizerBlacklist.cpp
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Driver/SanitizerArgs.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/fsanitize-blacklist.c