From 8b982cb8a90d06cdc8f12246569d3cdcc00a5df8 Mon Sep 17 00:00:00 2001 From: Volodymyr Sapsai Date: Thu, 14 Feb 2019 22:37:30 +0000 Subject: [clang-tidy] Mention language version in test explicitly. "modernize-use-using" check is applicable only to C++11 and later. Spell it out to avoid relying on default language version. rdar://problem/47932196 llvm-svn: 354069 --- clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp') diff --git a/clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp b/clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp index 153a5d6e91f..d124a344ec7 100644 --- a/clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp +++ b/clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp @@ -8,7 +8,7 @@ // RUN: cp -r %S/Inputs/mock-libcxx %t/ // // Pretend clang is installed beside the mock library that we provided. -// RUN: echo '[{"directory":"%t","command":"%t/mock-libcxx/bin/clang++ -stdlib=libc++ -target x86_64-apple-darwin -c test.cpp","file":"test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json +// RUN: echo '[{"directory":"%t","command":"%t/mock-libcxx/bin/clang++ -stdlib=libc++ -std=c++11 -target x86_64-apple-darwin -c test.cpp","file":"test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" // RUN: clang-tidy -header-filter='.*' -system-headers -checks='-*,modernize-use-using' "%t/test.cpp" | FileCheck %s // CHECK: mock_vector:{{[0-9]+}}:{{[0-9]+}}: warning: use 'using' instead of 'typedef' -- cgit v1.2.3