Objective-C-CPD-Language icon indicating copy to clipboard operation
Objective-C-CPD-Language copied to clipboard

Support for ObjC Literals?

Open e28eta opened this issue 12 years ago • 6 comments

Are you planning to add support for Objective-C Literals?

e28eta avatar Oct 12 '12 18:10 e28eta

I'll upvote this as well. I looked at the parser and spent a little time trying to figure out how to add it, but my compilers class was 30 years ago and I've forgotten most of it.

the-jack-cox avatar Jan 23 '13 19:01 the-jack-cox

I'll just follow up and say that I'll be glad to help validate it.

the-jack-cox avatar Jan 23 '13 19:01 the-jack-cox

I am also having issue issues with @[ modern objective C syntax, unfortunately this makes it completely useless for me.

Please can you fix it.

SuperBarracuda avatar Mar 20 '14 15:03 SuperBarracuda

Wondered why duplicates weren't being flagged. With logging enabled, I discovered that the parser is choking on Obj-C literals. This is a big setback for an otherwise wonderful tool!

jonreid avatar Feb 05 '15 22:02 jonreid

It looks like PR #10 might fix this issue, I haven't had a chance to try it yet.

e28eta avatar Apr 04 '15 16:04 e28eta

I was looking into this a little further. Looks like built-in Obj-C support was just released in PMD 5.3. http://pmd.sourceforge.net/pmd-5.3.0/overview/changelog.html

I'm not positive it's successfully parsing all the files in my project yet, but it seems to have handled literal support by recognizing a bare '@' sign as an independent token. A very practical solution for the requirements of CPD.

e28eta avatar Apr 04 '15 20:04 e28eta