[NFC][sanitizer] Remove %stdcxx11
-std=c++14 is a default for a while. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D111848
This commit is contained in:
parent
1274a07da0
commit
882ce178b3
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan -g %stdcxx11 -Wno-deprecated-declarations %s -o %t
|
||||
// RUN: %clangxx_asan -g -Wno-deprecated-declarations %s -o %t
|
||||
// RUN: %env_asan_opts=exitcode=42 %run %t | FileCheck %s
|
||||
|
||||
// Android doesn't have spawn.h or posix_spawn.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan %stdcxx11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
|
||||
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \
|
||||
// RUN: not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
#include <functional>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
// RUN: %clangxx_asan %stdcxx11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
|
||||
// RUN: not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
struct IntHolder {
|
||||
int val;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// RUN: %clangxx_asan %stdcxx11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
|
||||
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \
|
||||
// RUN: not %run %t 2>&1 | FileCheck %s
|
||||
|
||||
|
||||
struct IntHolder {
|
||||
__attribute__((noinline)) const IntHolder &Self() const {
|
||||
return *this;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clangxx_asan %stdcxx11 -O0 -fsanitize-address-use-after-scope %s -o %t
|
||||
// RUN: %clangxx_asan -O0 -fsanitize-address-use-after-scope %s -o %t
|
||||
// RUN: not %run %t 0 2>&1 | FileCheck %s
|
||||
// RUN: not %run %t 1 2>&1 | FileCheck %s
|
||||
// RUN: not %run %t 2 2>&1 | FileCheck %s
|
||||
|
|
|
|||
|
|
@ -167,14 +167,6 @@ if platform.system() == 'Windows':
|
|||
config.substitutions.append( ("%asan_cxx_lib", base_lib % "_cxx") )
|
||||
config.substitutions.append( ("%asan_dll_thunk", base_lib % "_dll_thunk") )
|
||||
|
||||
if platform.system() == 'Windows':
|
||||
# Don't use -std=c++11 on Windows, as the driver will detect the appropriate
|
||||
# default needed to use with the STL.
|
||||
config.substitutions.append(("%stdcxx11 ", ""))
|
||||
else:
|
||||
# Some tests uses C++11 features such as lambdas and need to pass -std=c++11.
|
||||
config.substitutions.append(("%stdcxx11 ", "-std=c++11 "))
|
||||
|
||||
# FIXME: De-hardcode this path.
|
||||
asan_source_dir = os.path.join(
|
||||
get_required_attr(config, "compiler_rt_src_root"), "lib", "asan")
|
||||
|
|
|
|||
|
|
@ -74,9 +74,6 @@ if config.memprof_dynamic:
|
|||
config.substitutions.append( ("%clang_memprof_static ", build_invocation(clang_memprof_static_cflags)) )
|
||||
config.substitutions.append( ("%clangxx_memprof_static ", build_invocation(clang_memprof_static_cxxflags)) )
|
||||
|
||||
# Some tests uses C++11 features such as lambdas and need to pass -std=c++11.
|
||||
config.substitutions.append(("%stdcxx11 ", '-std=c++11 '))
|
||||
|
||||
config.substitutions.append( ("%libdl", libdl_flag) )
|
||||
|
||||
config.available_features.add('memprof-' + config.bits + '-bits')
|
||||
|
|
|
|||
Loading…
Reference in New Issue