diff options
-rw-r--r-- | doc/preprocessing.doc | 4 | ||||
-rw-r--r-- | src/scanner.l | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/preprocessing.doc b/doc/preprocessing.doc index 882e60d..a49b889 100644 --- a/doc/preprocessing.doc +++ b/doc/preprocessing.doc @@ -264,6 +264,10 @@ preprocessing has been done (Hint: set <code>QUIET = YES</code> and <code>WARNINGS = NO</code> in the configuration file to disable any other output). +Note preprocessing is not done for all languages. Preprocesing is enabled for files +that use the "C" scanner (with the exception of 'java', 'd' and 'php'), Fortran files +(only in case the extension contains at least one upper case character) and vhdl files. + \htmlonly Go to the <a href="autolink.html">next</a> section or return to the <a href="index.html">index</a>. diff --git a/src/scanner.l b/src/scanner.l index 615c92f..d7fbd4a 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -7468,7 +7468,7 @@ bool CLanguageScanner::needsPreprocessing(const QCString &extension) SrcLangExt lang = getLanguageFromFileName(extension); return (SrcLangExt_Cpp == lang) || !( fe==".java" || fe==".as" || fe==".d" || fe==".php" || - fe==".php4" || fe==".inc" || fe==".phtml" + fe==".php4" || fe==".inc" || fe==".phtml"|| fe==".php5" ); } |