Skip to content

Commit 882ce17

Browse files
committed
[NFC][sanitizer] Remove %stdcxx11
-std=c++14 is a default for a while. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D111848
1 parent 1274a07 commit 882ce17

File tree

7 files changed

+5
-19
lines changed

7 files changed

+5
-19
lines changed

compiler-rt/test/asan/TestCases/exitcode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx_asan -g %stdcxx11 -Wno-deprecated-declarations %s -o %t
1+
// RUN: %clangxx_asan -g -Wno-deprecated-declarations %s -o %t
22
// RUN: %env_asan_opts=exitcode=42 %run %t | FileCheck %s
33

44
// Android doesn't have spawn.h or posix_spawn.

compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx_asan %stdcxx11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
1+
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \
22
// RUN: not %run %t 2>&1 | FileCheck %s
33

44
#include <functional>

compiler-rt/test/asan/TestCases/use-after-scope-temp.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// RUN: %clangxx_asan %stdcxx11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
2-
// RUN: not %run %t 2>&1 | FileCheck %s
3-
1+
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && not %run %t 2>&1 | FileCheck %s
42

53
struct IntHolder {
64
int val;

compiler-rt/test/asan/TestCases/use-after-scope-temp2.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// RUN: %clangxx_asan %stdcxx11 -O1 -fsanitize-address-use-after-scope %s -o %t && \
1+
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \
22
// RUN: not %run %t 2>&1 | FileCheck %s
33

4-
54
struct IntHolder {
65
__attribute__((noinline)) const IntHolder &Self() const {
76
return *this;

compiler-rt/test/asan/TestCases/use-after-scope-types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx_asan %stdcxx11 -O0 -fsanitize-address-use-after-scope %s -o %t
1+
// RUN: %clangxx_asan -O0 -fsanitize-address-use-after-scope %s -o %t
22
// RUN: not %run %t 0 2>&1 | FileCheck %s
33
// RUN: not %run %t 1 2>&1 | FileCheck %s
44
// RUN: not %run %t 2 2>&1 | FileCheck %s

compiler-rt/test/asan/lit.cfg.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ def build_invocation(compile_flags):
167167
config.substitutions.append( ("%asan_cxx_lib", base_lib % "_cxx") )
168168
config.substitutions.append( ("%asan_dll_thunk", base_lib % "_dll_thunk") )
169169

170-
if platform.system() == 'Windows':
171-
# Don't use -std=c++11 on Windows, as the driver will detect the appropriate
172-
# default needed to use with the STL.
173-
config.substitutions.append(("%stdcxx11 ", ""))
174-
else:
175-
# Some tests uses C++11 features such as lambdas and need to pass -std=c++11.
176-
config.substitutions.append(("%stdcxx11 ", "-std=c++11 "))
177-
178170
# FIXME: De-hardcode this path.
179171
asan_source_dir = os.path.join(
180172
get_required_attr(config, "compiler_rt_src_root"), "lib", "asan")

compiler-rt/test/memprof/lit.cfg.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ def build_invocation(compile_flags):
7474
config.substitutions.append( ("%clang_memprof_static ", build_invocation(clang_memprof_static_cflags)) )
7575
config.substitutions.append( ("%clangxx_memprof_static ", build_invocation(clang_memprof_static_cxxflags)) )
7676

77-
# Some tests uses C++11 features such as lambdas and need to pass -std=c++11.
78-
config.substitutions.append(("%stdcxx11 ", '-std=c++11 '))
79-
8077
config.substitutions.append( ("%libdl", libdl_flag) )
8178

8279
config.available_features.add('memprof-' + config.bits + '-bits')

0 commit comments

Comments
 (0)