[clang-tidy] Don't emit google-runtime-references warning for functions defined in...
authorHaojian Wu <hokein@google.com>
Fri, 23 Aug 2019 08:47:27 +0000 (08:47 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 23 Aug 2019 08:47:27 +0000 (08:47 +0000)
commitc4905a232c9ba5bccfd99bd2649efaa1651ce0bd
tree5fbbc9fa01f5a18712252e818c5508f7838e3e9d
parent6ef01c3e2bc2b19c9628518c53cf360cb6a43e23
[clang-tidy] Don't emit google-runtime-references warning for functions defined in macros.

Summary:
The macro are usually defined in the common/base headers which are hard
for normal users to modify it.

Reviewers: gribozavr, alexfh

Subscribers: xazax.hun, cfe-commits

Tags: #clang

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

llvm-svn: 369739
clang-tools-extra/clang-tidy/google/NonConstReferences.cpp
clang-tools-extra/test/clang-tidy/google-runtime-references.cpp