I create attribute clang::invariant(foo-name), i want to adl-call foo-name with ‘this’ every time when method marked with this attribute is called.
The prolems:
Its literally assume, so i want to do [[clang::assume]] instead of function call, but dont know how
on which compilation stage i really need to do it? As i understand it must be in Sema, but its not obvious how to do it
it must behave literaly after invoke, even in compound statements
It seams as very easy feature, like “just make assumption every time method called”, but im stuck, please help()