Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 1064 by james.fo...@gemtalksystems.com: FMMSEParser>>#'tNAME' should accept underscore character http://code.google.com/p/moose-technology/issues/detail?id=1064
I parsed some valid C++ code with inFamix and it produced a file that included an underscore as part of a name. Modifying the method as follows fixed the problem:
[ self next isAlphaNumeric or: [char == $_] ] whileTrue: [ buf nextPut: char ].
Type-Defect
Comment #1 on issue 1064 by tu...@tudorgirba.com: FMMSEParser>>#'tNAME' should accept underscore character http://code.google.com/p/moose-technology/issues/detail?id=1064
Hmm. This does not sound quite right. tNAME refers to the name of the attribute (for example numberOfLinesOfCode), not to the name of an entity in source code (that is just a value).
How did the MSE excerpt look like?
Comment #2 on issue 1064 by james.fo...@gemtalksystems.com: FMMSEParser>>#'tNAME' should accept underscore character http://code.google.com/p/moose-technology/issues/detail?id=1064
(FAMIX.FileAnchor (id: 5521) (fileName 'crc32.c') (startLine 333) (endLine 345) (startColumn 0) (endColumn 1) )
(FAMIX.Function (id: 4201) (sourceAnchor (ref: 5521)) (name 'gf2_matrix_times') (signature 'gf2_matrix_times(_unknown_file::unspecified,_unknown_file::unspecified)') (sourceAnchor (ref: 4198)) (parentModule (ref: 4204)) (declaredType (ref: 55)) (parentScope (ref: 4)) (isPublic true) (ATFD 0.00) (ALD 0.00) (CYCLO 3.00) (DR 0.00) (ICDO 0.00) (ICIO 0.00) (LOC 13.00) (LOCOMM 1.00) (LDA 1.00) (MAXNESTING 2.00) (NOAV 3.00) (NOOC 0.00) (NOPAR 2.00) (OCDO 0.00) (OCIO 0.00) (OCIO_POLY 0.00) )
Updates: Status: Fixed Labels: Milestone-5.0 Component-Fame
Comment #3 on issue 1064 by tu...@tudorgirba.com: FMMSEParser>>#'tNAME' should accept underscore character http://code.google.com/p/moose-technology/issues/detail?id=1064
Name: Fame-ImportExport-TudorGirba.20 Author: TudorGirba Time: 19 April 2014, 2:58:59.620558 pm UUID: 44da1e74-1043-4d41-afde-a63ce54d5451 Ancestors: Fame-ImportExport-VincentBlondeau.19
Issue 1064: FMMSEParser>>#'tNAME' should accept underscore character allowed underscore in attribute names