[PATCH] D51633: [ASTImporter] Added error handling for AST import.

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 4 07:54:05 PDT 2018


balazske created this revision.
Herald added subscribers: cfe-commits, jfb, martong.
Herald added a reviewer: a.sidorin.

The goal of this change is to make the ASTImporter::Import functions return
llvm::Expected instead of the imported type.
As first part the ASTNodeImporter visit functions are updated to return with
llvm::Expected. Various `import` functions are added to ASTNodeImporter to
simplify the code and have a common place for interface towards ASTImporter
(from ASTNodeImporter). There is some temporary code that is needed before
ASTImporter is updated.


Repository:
  rC Clang

https://reviews.llvm.org/D51633

Files:
  include/clang/AST/ASTImporter.h
  lib/AST/ASTImporter.cpp
  lib/AST/ExternalASTMerger.cpp
  unittests/AST/ASTImporterTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51633.163819.patch
Type: text/x-patch
Size: 401259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180904/1cdd7554/attachment-0001.bin>


More information about the cfe-commits mailing list