re PR preprocessor/90581 (provide an option to adjust the maximum depth of nested #include)

PR preprocessor/90581
Add a cpp option -fmax-include-depth to set the maximum depth of the nested #include.

From-SVN: r272948
This commit is contained in:
Qing Zhao 2019-07-02 20:23:30 +00:00 committed by Qing Zhao
parent 709877bf76
commit 1c6ffbab63
15 changed files with 59 additions and 6 deletions

View file

@ -550,6 +550,9 @@ struct cpp_options
/* True enables canonicalization of system header file paths. */
bool canonical_system_headers;
/* The maximum depth of the nested #include. */
unsigned int max_include_depth;
};
/* Diagnostic levels. To get a diagnostic without associating a