[clang] [clang] Move state out of `PreprocessorOptions` (1/n) (PR #86358)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 28 14:04:41 PDT 2024
================
@@ -34,12 +34,17 @@ class InitOnlyAction : public FrontendAction {
/// Preprocessor-based frontend action that also loads PCH files.
class ReadPCHAndPreprocessAction : public FrontendAction {
+ llvm::function_ref<void(CompilerInstance &)> OnCI;
----------------
benlangmuir wrote:
My concern is that nothing prevents using this frontend action from some other code where it wouldn't be safe. Maybe we can make it a unique_function?
https://github.com/llvm/llvm-project/pull/86358
More information about the cfe-commits
mailing list