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

David Blaikie <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <[email protected]> ---
I take it the bug you're reporting is that clang produces this warning when
running over the preprocessed output, but does not produce the warning when
running over the original code?

That is not itself a bug - Clang's diagnostic system detects the use of macros
and uses them as hints to improve warning quality. Clang does not intend to
produce the same output on preprocessed and non-preprocessed inputs.

For tools like ccache, you could consider using things like Clang's
-frewrite-includes feature which handles the #includes but leaves macros in
tact so that Clang's warning infrastructure can still see them. (include based
warning behavior - such as suppressing certain warnings in system headers, may
still work with -frewrite-includes output, I think (but don't quote me on
that), since the file still has line directives to indicate which bits of code
came from which header)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to