[all-commits] [llvm/llvm-project] 66bd5d: [clang-repl] Fix PCH with delayed template parsing...

Jonas Hahnfeld via All-commits all-commits at lists.llvm.org
Wed Aug 14 06:11:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66bd5d79891ddb8bf0d31d78c4973f6d20dcb571
      https://github.com/llvm/llvm-project/commit/66bd5d79891ddb8bf0d31d78c4973f6d20dcb571
  Author: Jonas Hahnfeld <jonas.hahnfeld at cern.ch>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    A clang/test/Interpreter/delayed-template-parsing-pch.cpp

  Log Message:
  -----------
  [clang-repl] Fix PCH with delayed template parsing (#103028)

When instantiating a delayed template, the recorded token stream is
passed to `Parser::ParseLateTemplatedFuncDef` which will append the
current token "so it doesn't get lost". With incremental extensions
enabled, this is `repl_input_end` which subsequently needs support for
(de)serialization.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list