Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Fortran: gfortran

LCD 47 edited this page Jun 12, 2016 · 13 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


Maintainer: Karl Yngve Lervåg karl.yngve@lervag.net

gfortran is a checker for Fortran files using either GNU Fortran or Intel Fortran Compilers.

Checker options

The following options are supported:

g:syntastic_fortran_compiler (string; default: 'gfortran')
Compiler executable. Set this to either 'gfortran' (to use GNU Fortran), or to 'ifort' (for Intel Fortran).
g:syntastic_fortran_errorformat (string; default: unset)
Override for the default errorformat.
g:syntastic_fortran_remove_include_errors (boolean; default: 0)
By default, errors in files included from the file being checked are shown. Set this variable to 1 to remove messages about errors in included files. Please note that this means syntastic will silently abort checks if there are fatal errors in one of the included files.
g:syntastic_fortran_compiler_options (string; default: unset)
Compilation flags (such as -std=f95) to be passed to the checker.
g:syntastic_fortran_config_file (string; default: '.syntastic_fortran_config')
File containing additional compilation flags to be passed to the checker, one option per line.
g:syntastic_fortran_include_dirs (array of strings; default: [])
Include directories to be passed to the checker, in addition to the above compilation flags. You can set this to something like ['includes', 'headers'], and the corresponding -Iincludes -Iheaders will be added to the compilation flags.
b:syntastic_fortran_cflags (string; default: unset)
Buffer-local variable. Additional compilation flags specific to the current buffer.

Note

This checker doesn't call the makeprgBuild() function, and thus it ignores the usual g:syntastic_fortran_gfortran_<option> variables. The only exception is g:syntastic_fortran_gfortran_exec, which can still be used to override the checker's executable.

Clone this wiki locally