From 1ce6eb34fb40a85a3f269f9941035d7d15d0a714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 3 Sep 2020 21:13:08 +0200 Subject: [PATCH] test-clang-import: try to use --std=c++11 --- test/cli/test-clang-import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli/test-clang-import.py b/test/cli/test-clang-import.py index f1bdbf3de..0af676a4e 100644 --- a/test/cli/test-clang-import.py +++ b/test/cli/test-clang-import.py @@ -36,8 +36,8 @@ def check_symbol_database(code): testfile = 'test.cpp' with open(testfile, 'w+t') as f: f.write(code) - ret1, stdout1, stderr1 = cppcheck(['--clang', '--debug', '-v', testfile]) - ret2, stdout2, stderr2 = cppcheck(['--debug', '-v', testfile]) + ret1, stdout1, stderr1 = cppcheck(['--clang', '--std=c++11', '--debug', '-v', testfile]) + ret2, stdout2, stderr2 = cppcheck(['--std=c++11', '--debug', '-v', testfile]) os.remove(testfile) assert get_debug_section('### Symbol database', stdout1) == get_debug_section('### Symbol database', stdout2)