[clang-tidy] Fix build with -DBUILD_SHARED_LIB=ON

Summary: This fixes build failures with `-DBUILD_SHARED_LIB=ON` after D67419.

Reviewers: NoQ

Subscribers: mgorny, xazax.hun, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67473

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@371706 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed