Skip to content
Snippets Groups Projects
  1. Mar 21, 2017
  2. Mar 20, 2017
  3. Mar 16, 2017
  4. Mar 09, 2017
  5. Mar 08, 2017
  6. Mar 07, 2017
    • Eric Fiselier's avatar
      [coroutines] Add DependentCoawaitExpr and fix re-building CoroutineBodyStmt. · 603fc45e
      Eric Fiselier authored
      Summary:
      The changes contained in this patch are:
      
      1. Defines a new AST node `CoawaitDependentExpr` for representing co_await expressions while the promise type is still dependent.
      2. Correctly detect and transform the 'co_await' operand to  `p.await_transform(<expr>)`  when possible.
      3. Change the initial/final suspend points to build during the initial parse, so they have the correct operator co_await lookup results.
      4.  Fix transformation of the CoroutineBodyStmt so that it doesn't re-build the final/initial suspends.
      
      
      @rsmith: This change is a little big, but it's not trivial for me to split it up. Please let me know if you would prefer this submitted as multiple patches.
      
      
      
      Reviewers: rsmith, GorNishanov
      
      Reviewed By: rsmith
      
      Subscribers: ABataev, rsmith, mehdi_amini, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26057
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297093 91177308-0d34-0410-b5e6-96231b3b80d8
      603fc45e
  7. Mar 04, 2017
  8. Mar 02, 2017
  9. Feb 27, 2017
  10. Feb 26, 2017
  11. Feb 25, 2017
    • NAKAMURA Takumi's avatar
      Revert r296166, "clang-format: Don't leave behind temp files in -i mode on... · f94f3deb
      NAKAMURA Takumi authored
      Revert r296166, "clang-format: Don't leave behind temp files in -i mode on Windows, PR26125", and r296171.
      
      (MemoryBuffer)Code.reset() was too early.
      
        ==26912== Invalid read of size 1
        ==26912==    at 0x437E1D: llvm::MemoryBuffer::init(char const*, char const*, bool) (MemoryBuffer.cpp:47)
        ==26912==    by 0x438013: (anonymous namespace)::MemoryBufferMem::MemoryBufferMem(llvm::StringRef, bool) (MemoryBuffer.cpp:86)
        ==26912==    by 0x438128: llvm::MemoryBuffer::getMemBuffer(llvm::StringRef, llvm::StringRef, bool) (MemoryBuffer.cpp:112)
        ==26912==    by 0x4E189D: clang::vfs::detail::(anonymous namespace)::InMemoryFileAdaptor::getBuffer(llvm::Twine const&, long, bool, bool) (VirtualFileSystem.cpp:443)
        ==26912==    by 0x4DF5BA: clang::vfs::FileSystem::getBufferForFile(llvm::Twine const&, long, bool, bool) (VirtualFileSystem.cpp:94)
        ==26912==    by 0x4B72EC: clang::FileManager::getBufferForFile(clang::FileEntry const*, bool, bool) (FileManager.cpp:443)
        ==26912==    by 0x4C1F81: clang::SrcMgr::ContentCache::getBuffer(clang::DiagnosticsEngine&, clang::SourceManager const&, clang::SourceLocation, bool*) const (SourceManager.cpp:98)
        ==26912==    by 0x4C50E5: clang::SourceManager::getBufferData(clang::FileID, bool*) const (SourceManager.cpp:689)
        ==26912==    by 0x58E794: clang::Rewriter::getEditBuffer(clang::FileID) (Rewriter.cpp:230)
        ==26912==    by 0x407297: clang::format::format(llvm::StringRef) (ClangFormat.cpp:311)
        ==26912==    by 0x4078D7: main (ClangFormat.cpp:363)
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296237 91177308-0d34-0410-b5e6-96231b3b80d8
      f94f3deb
  12. Feb 24, 2017
  13. Feb 23, 2017
  14. Feb 18, 2017
  15. Feb 17, 2017
  16. Feb 16, 2017
  17. Feb 15, 2017
  18. Feb 14, 2017
  19. Feb 10, 2017
  20. Feb 07, 2017
  21. Jan 30, 2017
  22. Jan 29, 2017
  23. Jan 28, 2017
  24. Jan 27, 2017
  25. Jan 26, 2017
  26. Jan 25, 2017
  27. Jan 20, 2017
Loading