@@ -35,7 +35,15 @@ abstract class Linter {
3535 /**
3636 * Compiler flag used to change the directory output for modules
3737 */
38- public readonly modFlag ?: string
38+ public readonly modFlag ?: string ,
39+ /**
40+ * Compiler flag used to force free-form compilation
41+ */
42+ public readonly freeFlag ?: string ,
43+ /**
44+ * Compiler flag used to force fixed-form compilation
45+ */
46+ public readonly fixedFlag ?: string
3947 ) { }
4048
4149 public getSeverityLevel ( msg_type : string ) : vscode . DiagnosticSeverity {
@@ -62,7 +70,9 @@ export class GNULinter extends Linter {
6270 } ,
6371 [ '-fsyntax-only' , '-cpp' ] ,
6472 [ '-Wall' ] ,
65- '-J'
73+ '-J' ,
74+ '-ffree-form' ,
75+ '-ffixed-form'
6676 ) ;
6777 }
6878 /**
@@ -116,7 +126,9 @@ export class GNUModernLinter extends Linter {
116126 } ,
117127 [ '-fsyntax-only' , '-cpp' , '-fdiagnostics-plain-output' ] ,
118128 [ '-Wall' ] ,
119- '-J'
129+ '-J' ,
130+ '-ffree-form' ,
131+ '-ffixed-form'
120132 ) ;
121133 }
122134
@@ -163,7 +175,9 @@ export class IntelLinter extends Linter {
163175 } ,
164176 [ '-syntax-only' , '-fpp' ] ,
165177 [ '-warn' , 'all' ] ,
166- '-module'
178+ '-module' ,
179+ '-free' ,
180+ '-fixed'
167181 ) ;
168182 }
169183 /**
@@ -206,7 +220,9 @@ export class NAGLinter extends Linter {
206220 } ,
207221 [ '-M' , '-quiet' ] ,
208222 [ ] ,
209- '-mdir'
223+ '-mdir' ,
224+ '-free' ,
225+ '-fixed'
210226 ) ;
211227 }
212228
@@ -256,7 +272,9 @@ export class LFortranLinter extends Linter {
256272 } ,
257273 [ '--error-format=short' ] ,
258274 [ ] ,
259- '-J'
275+ '-J' ,
276+ '' ,
277+ '--fixed-form'
260278 ) ;
261279 }
262280
0 commit comments