[llvm-bugs] [Bug 46352] PCH header is still parsed and included leading to redefinition errors (does not happen with clang-cl/GCC style pch)

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 16 12:49:44 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46352

Nikita Kniazev <nok.raven at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Nikita Kniazev <nok.raven at gmail.com> ---
Ok, I was looking at the wrong manual
https://clang.llvm.org/docs/PCHInternals.html, there is a note in
https://clang.llvm.org/docs/UsersManual.html#precompiled-headers that says
Clang does not automatically use PCH on includes inside source files, so you
have to *not* include the header yourself.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200616/aa609b0a/attachment.html>


More information about the llvm-bugs mailing list