pgousseau added a comment.

In D57914#1405955 <https://reviews.llvm.org/D57914#1405955>, @riccibruno wrote:

> More explicitly something like:
>
> in `Sanitizer.h`:
>
>   template <typename T = void> struct SanitizerMasks {
>     static const SanitizerMask SomeMask;
>     /* and so on for each mask*/
>   };
>  
>   template <typename T> const SanitizerMask SanitizerMasks<T>::SomeMask = the 
> definition;
>
>
> And then you can write `SanitizerMasks<>::SomeMask` when you want to use this 
> mask.


Sounds good to me, I will try that thanks!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57914/new/

https://reviews.llvm.org/D57914



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to