This is the mail archive of the gcc-patches@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: [patch] C++: locations for function declarations


Aldy Hernandez wrote:
On Fri, Sep 12, 2008 at 11:19:15AM -0400, Jason Merrill wrote:
You can use %q+#D instead of error_at. Otherwise OK.

Manuel's comment below suggested we were getting rid of format specifiers for locations in favor of {error,warning,etc}_at:

That does seem to be the direction he's working on. But that seems to me to be unnecessarily verbose when the location we want is also the location of a decl we're printing; that's the purpose of the + modifier, which is used extensively in the C++ front end.


Manuel, what's the rationale for requiring people to write out DECL_SOURCE_LOCATION (decl) in this situation?

Jason


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