[ASTImporter] Store import errors for DeclsSummary:We add a new member which is a mapping from the already-importeddeclarations in the "from" context to the error status of the import ofthat dec
[ASTImporter] Store import errors for DeclsSummary:We add a new member which is a mapping from the already-importeddeclarations in the "from" context to the error status of the import ofthat declaration. This map contains only the declarations that were notcorrectly imported. The same declaration may or may not be included inImportedDecls. This map is updated continuously during imports and nevercleared (like ImportedDecls). In Import(Decl*) we use this mapping, soif there was a previous failed import we return with the existing error.We add/remove from the Lookuptable in consistency with ImportedFromDecls.When we map a decl in the 'to' context to something in the 'from'context then and only then we add it to the lookup table. When weremove a mapping then and only then we remove it from the lookup table.This patch is the first in a series of patches whose aim is to furtherstrengthen the error handling in ASTImporter.Reviewers: a_sidorin, a.sidorin, shafikSubscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commitsTags: #clangDifferential Revision: https://reviews.llvm.org/D62373llvm-svn: 364279
show more ...
Update ASTMerge FileCheck test expectationsI belive many of these diagnostics changed from errors to warnings inr357394. I've simply mechanically updated the tests, but whoever ownsthis code shou
Update ASTMerge FileCheck test expectationsI belive many of these diagnostics changed from errors to warnings inr357394. I've simply mechanically updated the tests, but whoever ownsthis code should probably audit for unintented behavior changes. Iwasn't able to find a flag to make these warnings errors again.llvm-svn: 360701
Restore test files accidentally deleted in r354839I think there must be a bug in git-llvm causing parent directories to bedeleted when the diff deletes files in a subdirectory. Perhaps it isWindo
Restore test files accidentally deleted in r354839I think there must be a bug in git-llvm causing parent directories to bedeleted when the diff deletes files in a subdirectory. Perhaps it isWindows-only.There has been a behavior change, so some of these tests now fail. Ihave marked them XFAIL and will fix them in a follow-up to separate thechanges.llvm-svn: 360699
Revert r354832 "[ASTImporter] Add support for importing ChooseExpr AST nodes."Test does not pass on Windowsllvm-svn: 354839
ASTImporter: fix tests on Windows with removing slashed parts of pathsDifferential Revision: https://reviews.llvm.org/D26753llvm-svn: 292781
ASTImporter: quick test fixDifferential Revision: https://reviews.llvm.org/D26753llvm-svn: 292779
ASTImporter: add forgotten tests for rL292776llvm-svn: 292778