<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 178: location format for gcc not useful for hierarchial source</title><link href="https://sourceforge.net/p/cppunit/bugs/178/" rel="alternate"/><link href="https://sourceforge.net/p/cppunit/bugs/178/feed.atom" rel="self"/><id>https://sourceforge.net/p/cppunit/bugs/178/</id><updated>2007-04-10T00:11:25Z</updated><subtitle>Recent changes to 178: location format for gcc not useful for hierarchial source</subtitle><entry><title>location format for gcc not useful for hierarchial source</title><link href="https://sourceforge.net/p/cppunit/bugs/178/" rel="alternate"/><published>2007-04-10T00:11:25Z</published><updated>2007-04-10T00:11:25Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.netd4b03148973484ccf0c24032e54b30ea6bb584e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The comments in CompilerOutputter.h suggest that "%f:%l:" is the default for gcc compilers.  This isn't useful for the common use case of this outputter -- stepping through to the next error --  when you're building unit tests in a source tree with many directories.&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;
&lt;p&gt;foo/module1/code.cc&lt;br /&gt;
foo/module1/code_test.cc&lt;/p&gt;
&lt;p&gt;foo/module2/code.cc&lt;br /&gt;
foo/module2/code_test.cc&lt;/p&gt;
&lt;p&gt;with the default of "%f:%l:" you won't know which test an error occurred in, and emacs won't know where to find it.&lt;/p&gt;
&lt;p&gt;an explicit&lt;/p&gt;
&lt;p&gt;outputter.setLocationFormat("%p:%l:")&lt;/p&gt;
&lt;p&gt;does the right thing, but this location format should be the default.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>