Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 64178 Details for
Bug 177154
[patch] single-line comments incorrectly retained in macros
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
another unit test
177154_2.patch (text/plain), 2.06 KB, created by
Ed Swartz
on 2007-04-18 08:52:43 EDT
(
hide
)
Description:
another unit test
Filename:
MIME Type:
Creator:
Ed Swartz
Created:
2007-04-18 08:52:43 EDT
Size:
2.06 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.cdt.core.tests >Index: parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java,v >retrieving revision 1.118 >diff -u -r1.118 AST2Tests.java >--- parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java 16 Apr 2007 14:55:42 -0000 1.118 >+++ parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java 18 Apr 2007 12:52:14 -0000 >@@ -3648,4 +3648,35 @@ > for (int i = 0; i < LANGUAGES.length; i++) > parse( buffer.toString(), LANGUAGES[i], true, true ); > } >+ >+ public void testMacroCommentsBug_177154_2() throws Exception { >+ String noCommentMacro = >+ "#define Sonar16G(x) ((Sonr16G(x)<<16)|0xff000000L)\r\n"; >+ String commentMacro = >+ "#define Sonar16G(x) ((Sonr16G(x)<<16)|0xff000000L) // add the varf value\r\n"; >+ >+ String textTail = "\r\n" + >+ "const int snd16SonarR[32] = {\r\n" + >+ " 0xFF000000L, Sonar16G(0x01), Sonar16G(0x02), Sonar16G(0x03),\r\n" + >+ " Sonar16G(0x04), Sonar16G(0x05), Sonar16G(0x06), Sonar16G(0x07),\r\n" + >+ " Sonar16G(0x08), Sonar16G(0x09), Sonar16G(0x0A), Sonar16G(0x0B),\r\n" + >+ " Sonar16G(0x0C), Sonar16G(0x0D), Sonar16G(0x0E), Sonar16G(0x0F),\r\n" + >+ " Sonar16G(0x10), Sonar16G(0x11), Sonar16G(0x12), Sonar16G(0x13),\r\n" + >+ " Sonar16G(0x14), Sonar16G(0x15), Sonar16G(0x16), Sonar16G(0x17),\r\n" + >+ " Sonar16G(0x18), Sonar16G(0x19), Sonar16G(0x1A), Sonar16G(0x1B),\r\n" + >+ " Sonar16G(0x1C), Sonar16G(0x1D), Sonar16G(0x1E), Sonar16G(0x1F),\r\n" + >+ " };\r\n" + >+ "\r\n" + >+ ""; >+ >+ // this should work >+ String textNoComment = noCommentMacro + textTail; >+ IASTTranslationUnit tu = parse( textNoComment, ParserLanguage.CPP, true, true ); >+ >+ // this fails >+ String textComment = commentMacro + textTail; >+ tu = parse( textComment, ParserLanguage.CPP, true, true ); >+ >+ } >+ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bjorn.freeman-benson
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 177154
:
60671
|
62226
| 64178