Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Formatting bug with "using namespace"
Formatting bug with "using namespace" [message #227219] Tue, 25 November 2008 03:25 Go to next message
Eclipse UserFriend
Hi,

I have a piece of code like this :

/*...... some includes before ....... */
#include <AliCDBManager.h>

using namespace amore::core;

namespace amore {

namespace QA {

namespace publisher {

PublisherQA::PublisherQA() :
fqadmrec(0) {

/*........ code continues.........*/

And when I format it I get this :

/*...... some includes before ....... */
#include <AliCDBManager.h>

using namespace amore::core;

namespaceamore{ // !!!!!!!!!!!!!! wrong

namespace QA {

namespace publisher {

PublisherQA::PublisherQA() :
fqadmrec(0) {
/*........ code continues.........*/

It is not a simple problem of wrong formatting, it really breaks the code.

I get the following errors :
eclipse.buildId=M20080911-1700
java.version=1.5.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

[19/1] unexpected token type, expecting:91, actual:Token type=1 image
=amore offset=1351

org.eclipse.cdt.internal.formatter.AbortFormatting: [19/1] unexpected
token type, expecting:91, actual:Token type=1 image =amore offset=1351

[19/1] unexpected token type, expecting:121, actual:Token type=91 image
=namespace offset=1341

org.eclipse.cdt.internal.formatter.AbortFormatting: [19/1] unexpected
token type, expecting:121,
actual:Token type=91 image =namespace offset=1341


Should I open a new "ticket" somewhere ? is it known ?
Cheers,

Barth
Re: Formatting bug with "using namespace" [message #227272 is a reply to message #227219] Wed, 26 November 2008 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Barthelemy wrote:
>
> Hi,
>
> I have a piece of code like this :
>
> /*...... some includes before ....... */
> #include <AliCDBManager.h>
>
> using namespace amore::core;
>
> namespace amore {
>
> namespace QA {
>
> namespace publisher {
>
> PublisherQA::PublisherQA() :
> fqadmrec(0) {
>
> /*........ code continues.........*/
>
> And when I format it I get this :
>
> /*...... some includes before ....... */
> #include <AliCDBManager.h>
>
> using namespace amore::core;
>
> namespaceamore{ // !!!!!!!!!!!!!! wrong
>
> namespace QA {
>
> namespace publisher {
>
> PublisherQA::PublisherQA() :
> fqadmrec(0) {
> /*........ code continues.........*/
>
> It is not a simple problem of wrong formatting, it really breaks the code.
>
> I get the following errors :
> eclipse.buildId=M20080911-1700
> java.version=1.5.0_15
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86
>
> [19/1] unexpected token type, expecting:91, actual:Token type=1 image
> =amore offset=1351
>
> org.eclipse.cdt.internal.formatter.AbortFormatting: [19/1] unexpected
> token type, expecting:91, actual:Token type=1 image =amore offset=1351
>
> [19/1] unexpected token type, expecting:121, actual:Token type=91 image
> =namespace offset=1341
>
> org.eclipse.cdt.internal.formatter.AbortFormatting: [19/1] unexpected
> token type, expecting:121,
> actual:Token type=91 image =namespace offset=1341
>
>
> Should I open a new "ticket" somewhere ? is it known ? Cheers,
>
> Barth
>
>

Please file a new bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT

Thanks!
--
Anton Leherbauer
Wind River Systems, Austria
CDT Committer - http://www.eclipse.org/cdt
DSDP/DD Committer - http://www.eclipse.org/dsdp/dd
Re: Formatting bug with "using namespace" [message #227331 is a reply to message #227272] Thu, 27 November 2008 05:05 Go to previous message
Eclipse UserFriend
Done !
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256744

Cheers,
Barth
Previous Topic:Getting all files currently indexed
Next Topic:problem with debugging dll.
Goto Forum:
  


Current Time: Fri Oct 24 02:54:40 EDT 2025

Powered by FUDForum. Page generated in 0.03263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top