Even when I only input a single source file, clang-tidy reports thousands of errors that it then says are suppressed because they are in non-user code. Running clang-tidy on this single source file takes several seconds, and I assume that the reason is that it’s trying to lint all this non-user code, instead of just looking at the files I tell it to (my source and header files). When I lint my whole code base, it takes 5 minutes and reports hundreds of thousands of suppressed warnings from non-user code.
Is there a way to have clang-tidy completely skip over non-user code, instead of checking it and suppressing them?