Lines Matching defs:DeclOrigin
240 struct DeclOrigin {
241 DeclOrigin() = default;
243 DeclOrigin(clang::ASTContext *_ctx, clang::Decl *_decl)
249 DeclOrigin(const DeclOrigin &rhs) {
254 void operator=(const DeclOrigin &rhs) {
367 typedef llvm::DenseMap<const clang::Decl *, DeclOrigin> OriginMap;
378 /// Sets the DeclOrigin for the given Decl and overwrites any existing
379 /// DeclOrigin.
380 void setOrigin(const clang::Decl *decl, DeclOrigin origin) {
391 /// Removes any tracked DeclOrigin for the given decl.
394 /// Remove all DeclOrigin entries that point to the given ASTContext.
407 /// Returns the DeclOrigin for the given Decl or an invalid DeclOrigin
408 /// instance if there no known DeclOrigin for the given Decl.
409 DeclOrigin getOrigin(const clang::Decl *decl) const {
412 return DeclOrigin();
416 /// Returns true there is a known DeclOrigin for the given Decl.
425 /// the ASTImporter, then it doesn't have a DeclOrigin and will not be
472 DeclOrigin GetDeclOrigin(const clang::Decl *decl);
518 ClangASTImporter::DeclOrigin origin = importer.GetDeclOrigin(this->decl);