[cfe-dev] How to determine if a raw_id token is a macro name?

Richard via cfe-dev cfe-dev at lists.llvm.org
Sun Jan 9 12:50:52 PST 2022


[Please reply *only* to the list and do not include my email directly
in the To: or Cc: of your reply; otherwise I will not see your reply.

Thanks.]

In article <D64116A8-DB65-4A0C-8146-53C3E0A2E53D at gmail.com>,
    David Rector via cfe-dev <cfe-dev at lists.llvm.org> writes:

> You are right, the presence of `#define false false` etc. would blow this
> solution up, so that it should not be relied as usually-okay-but-imperfect.

IMO, I am not worried about failing in the face of deliberately
malformed code.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
            The Terminals Wiki <http://terminals-wiki.org>
     The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
  Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>


More information about the cfe-dev mailing list