1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibCpp: Add option in Preprocessor to keep #include's in processed text

This commit is contained in:
Itamar 2021-05-21 15:41:38 +03:00 committed by Andreas Kling
parent 14e0011825
commit 0522a4360b
2 changed files with 12 additions and 1 deletions

View file

@ -33,6 +33,7 @@ public:
const Definitions& definitions() const { return m_definitions; }
void set_ignore_unsupported_keywords(bool ignore) { m_options.ignore_unsupported_keywords = ignore; }
void set_keep_include_statements(bool keep) { m_options.keep_include_statements = keep; }
private:
using PreprocessorKeyword = StringView;
@ -61,6 +62,7 @@ private:
struct Options {
bool ignore_unsupported_keywords { false };
bool keep_include_statements { false };
} m_options;
};
}