[PATCH] D86223: [analyzer][z3] Use more elaborate z3 variable names in debug build

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 20 10:08:32 PDT 2020


steakhal added a comment.

In D86223#2228731 <https://reviews.llvm.org/D86223#2228731>, @xazax.hun wrote:

> In D86223#2227353 <https://reviews.llvm.org/D86223#2227353>, @steakhal wrote:
>
>> Eh, I'm not sure if it worth it to put these into virtual functions - as conditionally overriding functions is not really a good idea.
>
> I am not sure I follow. What do you mean by conditionally overriding? What is the condition?

I wanted to conditionally, aka. in debug configuration override the base implementation of the SymbolData::getKindStr to print return the specific kind string. In any other configuration I wanted to indef out the overriding functions to let the SymbolData implementation to be triggered.
In that way less macro expansion would have been necessary, resulting in cleaner code.

Unfortunately I would have needed even more macros to make the subtype override function declarations disappear.

This was the reason that I suggested to leave the current implementation as-is.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D86223



More information about the cfe-commits mailing list