From 58d02ef7fc36b48b2d3783dd848e402b1fa9707f Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 2 Jul 2019 12:49:12 +0200 Subject: Bug 437181 - The -d Preprocessor option doesn't work for php, should be in the doc. - excluded `.php5` files from preprocessing (like other php files) - made remark about some limits in files that are preprocessed in documentation --- doc/preprocessing.doc | 4 ++++ src/scanner.l | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 QUIET = YES and WARNINGS = NO 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 next section or return to the index. diff --git a/src/scanner.l b/src/scanner.l index 42058d8..62b1f04 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -7457,7 +7457,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" ); } -- cgit v0.12