3 ms·
I'm not a programmer so bear with me. They have a cadre of samples in the project, searching on "#pragma once" shows no examples of Objective-C (that I can see
by pbhjpbhj 12y ago
I'm not a programmer so bear with me.
They have a cadre of samples in the project, searching on "#pragma once" shows no examples of Objective-C (that I can see) using that line but does show C/C++ examples with it. Is that the input to the classifier?
The heuristic you linked appears to default to identifying as C; that regex doesn't look like it has anything to make the else-if return the sample as Obj-C.
I'd have expected the fact that most other files on the project were C to be the dominant factor that - without any other positive result in the classifier - would weight the files as being C. Presumably this data isn't used in classifier though?
Interesting.