diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2019-02-14 22:37:30 +0000 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2019-02-14 22:37:30 +0000 |
commit | 8b982cb8a90d06cdc8f12246569d3cdcc00a5df8 (patch) | |
tree | 2666288283bc0cd2a63c813568e85abb444a3503 /clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp | |
parent | 96adb78b120b6aa9739eb714534dc8e819f7bc52 (diff) | |
download | bcm5719-llvm-8b982cb8a90d06cdc8f12246569d3cdcc00a5df8.tar.gz bcm5719-llvm-8b982cb8a90d06cdc8f12246569d3cdcc00a5df8.zip |
[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
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/clang-tidy-mac-libcxx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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' |