[analyzer] Fix out-of-tree only clang build by not relaying on private header
authorBalazs Benics <benicsbalazs@gmail.com>
Fri, 31 Jul 2020 08:28:14 +0000 (10:28 +0200)
committerBalazs Benics <benicsbalazs@gmail.com>
Fri, 31 Jul 2020 08:28:14 +0000 (10:28 +0200)
commit63d3aeb529a7b0fb95c2092ca38ad21c1f5cfd74
treed9a8dff1cdebdfd80c0693e5fd2f7c3fb7c4529d
parenta50cec71ecea5680c15752d211db16d49d5b1f12
[analyzer] Fix out-of-tree only clang build by not relaying on private header

It turned out that the D78704 included a private LLVM header, which is excluded
from the LLVM install target.
I'm substituting that `#include` with the public one by moving the necessary
`#define` into that. There was a discussion about this at D78704 and on the
cfe-dev mailing list.

I'm also placing a note to remind others of this pitfall.

Reviewed By: mgorny

Differential Revision: https://reviews.llvm.org/D84929
clang/unittests/StaticAnalyzer/FalsePositiveRefutationBRVisitorTest.cpp
llvm/include/llvm/Config/config.h.cmake
llvm/include/llvm/Config/llvm-config.h.cmake