[PATCH] D50447: [clang-tidy] Add a whitelistClasses option in performance-for-range-copy check.
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 8 06:54:57 PDT 2018
JonasToth added inline comments.
================
Comment at: test/clang-tidy/performance-for-range-copy.cpp:1
-// RUN: %check_clang_tidy %s performance-for-range-copy %t -- -- -std=c++11 -fno-delayed-template-parsing
+// RUN: %check_clang_tidy %s performance-for-range-copy %t -config="{CheckOptions: [{key: "performance-for-range-copy.WhitelistClasses", value: "WhitelistFoo"}]}" -- -std=c++11 -fno-delayed-template-parsing
----------------
I would prefer a single file, that has the configuration and leave the standard test like it is.
with this, you can always track what is actually done by default and what is done with different conigurations + potential inconsistencies that might occur by bugs in the configured code.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50447
More information about the cfe-commits
mailing list