This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is_predicate_p?


<<call, it'll always be
        if (is_foo ())
>>

Yes, and by your same argument if I write

   if (stmt_ends_bb (foo))

it is also pretty obvious that this a predicate

<<No. I now can't tell whether stmt_ends_bb (foo) is commanding that foo
end a statement, or questioning whether foo ends a statment.
>>

I would find stmt_ends_bb a very poor choice of name for the command. I find
it a well chosen name for the predicate. For the command I would use
something like require_end_bb or ensure_end_bb or some such


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]