<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55723>55723</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [PCH] __clang__analyzer__ is not defined when using a pch with --analyze
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang,
            clang:static analyzer
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          wolfy1961
      </td>
    </tr>
</table>

<pre>
    The attached repro demonstrates that when we use clang with --analyze,  the predefined macro *\_\_clang_analyzer\_\_* does not seem to be defined when we use a precompiled header. It is defined when compile without the pch.
[repro.zip](https://github.com/llvm/llvm-project/files/8781287/repro.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUcuO2zAM_Br5QsSwpfh18CFNULS3Hno39GBsFfIDktwg-_WlvUm221sBGzTN4XA4VLO5tz8HBBmj1AMa8Lj4GQyO8xSilxEDxEFGuA04wQ1hDQjayamHm40DHA5yku7-hoyfgZAIi0eDVzsR1yg1cTF-YsW52969sXt0-OdfAoCZadA0RwiII8QZFMKT5u_RcuPX87hYR5UBpUGfwvcINnzGPzC7ynmN79L0kLLswjIS9GVfNH2zCysujNdDjEtg4sT4V3p66lpVSiSUOPf7GQ7U8wt1pPRK7IFiXdU5ryv6-mDkzfuYxLTCNKKRSbTRYUtjf5y_0UDoHl68zOi6bYXNgU9rrMGS1XKT_o_hyepd-9-qbQjrLrsoKi6SoeVlcxRaVkJU2TGvVGXMtTQ15UoJiU3ipEIXNumM8100xe3ar1ScQpTRangdlgDFJbEtzzjPCl7mtSjzLNWmzIQsdIO6apQq2THDUVqXbiLT2feJb3e9au0DFZ0NMXwUZQi2n3C3ceOXK53Wt7fZXe95U-bJvly7b_YHwUTwIA">