[cfe-dev] SourceLocation::isFileID() and isMacroID() ?

Paolo Bolzoni bolzoni at cs.unipr.it
Fri Jan 16 01:07:46 PST 2009


dear cfe-dev list,

When visiting the clang AST of a C source, I often get SourceLocations that
aren't valid or aren't FileID. Why some locations are not valid?
And what does it mean that a location isn't a file ID?

It seems to happen almost always in asm file scope declarations.


Moreover, what does isMacroID() false or true mean?

Once again,
thanks.
pb



More information about the cfe-dev mailing list