[all-commits] [llvm/llvm-project] f4d02f: Frontend: Take VFS and MainFileBuffer by reference...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Mon Jan 25 17:55:54 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f4d02fbe418db55375b78b8f57e47126e4642fb6
      https://github.com/llvm/llvm-project/commit/f4d02fbe418db55375b78b8f57e47126e4642fb6
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M clang-tools-extra/clangd/Preamble.cpp
    M clang/include/clang/Frontend/PrecompiledPreamble.h
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Frontend/PrecompiledPreamble.cpp

  Log Message:
  -----------
  Frontend: Take VFS and MainFileBuffer by reference in PrecompiledPreamble::CanReuse, NFC

Clarify that `PrecompiledPreamble::CanReuse` requires non-null arguments
for `VFS` and `MainFileBuffer`, taking them by reference instead of by
pointer.

Differential Revision: https://reviews.llvm.org/D91297




More information about the All-commits mailing list