r198858 - Disable LeakSanitizer in TableGen binaries, see PR18325
Alp Toker
alp at nuanti.com
Thu Jan 9 03:15:35 PST 2014
On 09/01/2014 11:08, Chandler Carruth wrote:
>
> On Thu, Jan 9, 2014 at 6:02 AM, Alp Toker <alp at nuanti.com
> <mailto:alp at nuanti.com>> wrote:
>
> Hi Kostya,
>
> This doesn't look correct and fires warnings my my strict checks
> build.
>
>
> I'm pretty sure the change works correctly, and it was definitely what
> Kostya and I intended.
>
>
> Double-underscore prefixed identifiers are strictly reserved for
> the implementation.
>
>
> Yes, and LeakSanitizer is something provided by the implementation?
> (the toolchain's runtime libraries specifically) I don't see any
> problem with double underscore here, any more than with __builtin_...
> functions or any of the other sanitizer interfaces.
__builtin functions are introduced by the implementation (either the
compiler or system header declarations) so there's no problem.
Sanitizer is a system library so it's free to use the identifiers it wants.
TableGen, on the other hand, is not a part of the implementation.
>
> Can you clarify exactly what the error is and why? It's possible we
> could provide a macro of some kind in the sanitizer headers to bundle
> this functionality up if we need some special marking of this for
> checkers, but without more information its hard to hell what the
> actual problem is.
These two commits _introduced_ names in the reserved namespace.
The checker I have is a strict warning flag I've been trying to encode
the rules from the standard and in this case the diagnostic looks
legitimate.
Alp.
--
http://www.nuanti.com
the browser experts
More information about the cfe-commits
mailing list