[all-commits] [llvm/llvm-project] 4c264c: [Parse] Split incremental-extensions (#65683)

Ben Barham via All-commits all-commits at lists.llvm.org
Mon Sep 11 17:40:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c264c26d726f594c4618e4bfeac93d403de893f
      https://github.com/llvm/llvm-project/commit/4c264c26d726f594c4618e4bfeac93d403de893f
  Author: Ben Barham <ben_barham at apple.com>
  Date:   2023-09-11 (Mon, 11 Sep 2023)

  Changed paths:
    M clang/include/clang/Lex/Preprocessor.h
    M clang/lib/Lex/PPLexerChange.cpp
    M clang/lib/Lex/Preprocessor.cpp
    M clang/lib/Parse/Parser.cpp

  Log Message:
  -----------
  [Parse] Split incremental-extensions (#65683)

The preprocessor `IncrementalProcessing` option was being used to
control whether or not to teardown the lexer or run the end of
translation unit action. In D127284 this was merged with
`-fincremental-extensions`, which also changes top level parsing.

Split these again so that the former behavior can be achieved without
the latter (ie. to allow managing lifetime without also changing
parsing).

Resolves rdar://113406310.




More information about the All-commits mailing list