File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3891,10 +3891,10 @@ def misra_20_14(self, data):
38913891 # the size increases when there are inner #if directives.
38923892 ifStack = []
38933893 for directive in data .directives :
3894- if directive .str .startswith ('#if ' ) or directive .str .startswith ('#ifdef ' ) or directive .str .startswith (
3895- '#ifndef ' ):
3894+ if directive .str .startswith ('#if ' ) or directive .str .startswith ('#if( ' ) or directive .str .startswith ('#ifdef ' )
3895+ or directive . str . startswith ( '#ifndef ' ):
38963896 ifStack .append (directive )
3897- elif directive .str == '#else' or directive .str .startswith ('#elif ' ):
3897+ elif directive .str == '#else' or directive .str .startswith ('#elif ' ) or directive . str . startswith ( '#elif(' ) :
38983898 if len (ifStack ) == 0 :
38993899 self .reportError (directive , 20 , 14 )
39003900 ifStack .append (directive )
You can’t perform that action at this time.
0 commit comments