SonarQubeCommunity / sonar-erlang

12 stars 23 forks source link

Parse error with macro and record field #11

Open kalidasya opened 9 years ago

kalidasya commented 9 years ago
Parse error at line 10 column 62:
 1: -module(macro_with_record_field).
 2: 
 3: -define(MACRO, my_macro).
 4: 
 5: -record(?MACRO, {
 6:   field
 7: }).
 8: 
 9: my_function() ->
10:   ets:new(?MACRO, [set, named_table, public, {keypos, #?MACRO.field}, {read_concurrency, true}]).
kalidasya commented 9 years ago

The issue is, we do not cover #Name.Field in the recordAccess rule but in the recordCreate so with the . it goes wrong... need some re-thinking