aboutsummaryrefslogtreecommitdiff
path: root/clang/include/clang/Sema/MultiplexExternalSemaSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Sema/MultiplexExternalSemaSource.h')
-rw-r--r--clang/include/clang/Sema/MultiplexExternalSemaSource.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/include/clang/Sema/MultiplexExternalSemaSource.h b/clang/include/clang/Sema/MultiplexExternalSemaSource.h
index dcbac9f0ba10..e94dd5d46871 100644
--- a/clang/include/clang/Sema/MultiplexExternalSemaSource.h
+++ b/clang/include/clang/Sema/MultiplexExternalSemaSource.h
@@ -332,6 +332,15 @@ public:
llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>>
&LPTMap) override;
+ /// Read the set of decls to be checked for deferred diags.
+ ///
+ /// The external source should append its own potentially emitted function
+ /// and variable decls which may cause deferred diags. Note that this routine
+ /// may be invoked multiple times; the external source should take care not to
+ /// introduce the same declarations repeatedly.
+ void ReadDeclsToCheckForDeferredDiags(
+ llvm::SmallVector<Decl *, 4> &Decls) override;
+
/// \copydoc ExternalSemaSource::CorrectTypo
/// \note Returns the first nonempty correction.
TypoCorrection CorrectTypo(const DeclarationNameInfo &Typo,