[clang-tidy] Do not issue fix for functions that are referenced outside of callExpr
authorFelix Berger <flx@google.com>
Thu, 10 Nov 2016 01:28:22 +0000 (01:28 +0000)
committerFelix Berger <flx@google.com>
Thu, 10 Nov 2016 01:28:22 +0000 (01:28 +0000)
commit85f9e8b3163c7147db22ccd6f8bf8bc659b3469f
tree9e2fe636fe5c60cb180d5dd9d5d1bd2d4c1996e0
parent4e1b5a53c728ea48460c7ca8c8ac28e9bef92334
[clang-tidy] Do not issue fix for functions that are referenced outside of callExpr

Summary: Suppress fixes for functions that are referenced within the
compilation unit outside of a call expression as the signature change
could break the code referencing the function.

We still issue a warning in this case so that users can decide to
manually change the function signature.

Reviewers: alexfh, sbenza, aaron.ballman

Subscribers: cfe-commits

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

llvm-svn: 286424
clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
clang-tools-extra/test/clang-tidy/performance-unnecessary-value-param.cpp