[all-commits] [llvm/llvm-project] 079a5f: [HLSL] Support PCH for cc1 mode

Xiang Li via All-commits all-commits at lists.llvm.org
Tue Sep 20 15:14:03 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 079a5ffb0a3f862bee3076f785d5c71c03e14f00
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M clang/include/clang/Sema/HLSLExternalSemaSource.h
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Sema/HLSLExternalSemaSource.cpp
    A clang/test/AST/HLSL/Inputs/pch.hlsl
    A clang/test/AST/HLSL/Inputs/pch_with_buf.hlsl
    A clang/test/AST/HLSL/pch.hlsl
    A clang/test/AST/HLSL/pch_with_buf.hlsl

  Log Message:
  [HLSL] Support PCH for cc1 mode

Add HLSLExternalSemaSource as ExternalSemaSource instead of ASTContext::ExternalSource when PCH is included.

This allows a different external source to be set for the AST context.

Reviewed By: beanz

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

More information about the All-commits mailing list