[PATCH] D42983: [clang-tidy] Add `readability-simd-intrinsics` check.
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 14:33:00 PST 2018
MaskRay added a comment.
I haven't used clang-tidy before :) Do you have any suggestions on my workflow?
% ninja -C ~/Dev/llvm/build clangTidyReadabilityModule
% ~/Dev/llvm/build/bin/clang-tidy -checks='-*,readability-simd-intrinsics' a.cc
# for local testing
# Ensure tests are correct
% PATH=~/Dev/llvm/build/bin:$PATH test/clang-tidy/check_clang_tidy.py test/clang-tidy/readability-simd-intrinsics.cpp readability-simd-intrinsics /tmp/t
I check `llvm::Triple::ArchType` to reduce number of target-dependent string matching. But in the test I don't know how to enable `-target ppc64le -maltivec` so that I can test PPC.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D42983
More information about the cfe-commits
mailing list