| Formatting bug with "using namespace" [message #227219] |
Tue, 25 November 2008 03:25  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.69987 seconds