amirmonshi
amirmonshi

Reputation: 659

Can a compiler generate debug info based on namespace?

It is probably a very very stupid question and I'm gambling by posting it here, but can a compiler generate debug info based on namespace?

It could be a very useful feature when working with template heavy libraries such as boost spirit (to be able to disable debug info generation for boost namespace).

Upvotes: 0

Views: 50

Answers (1)

Jerry Coffin
Jerry Coffin

Reputation: 490178

From a technical perspective, there's probably no reason a compiler couldn't be written to work this way.

From a practical perspective, I don't know of a compiler that works this way, and rather doubt that one exists, so even though it probably could be done, it's of little practical relevance.

Upvotes: 1

Related Questions