[all-commits] [llvm/llvm-project] 6d0174: [libc] allow libc-hdrgen to work on windows files ...

Stephen Neuendorffer via All-commits all-commits at lists.llvm.org
Mon Apr 1 17:04:52 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d0174e70641b1ea172ffed07c43604ef15e28ae
      https://github.com/llvm/llvm-project/commit/6d0174e70641b1ea172ffed07c43604ef15e28ae
  Author: Stephen Neuendorffer <stephen.neuendorffer at amd.com>
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
    M libc/utils/HdrGen/Generator.cpp

  Log Message:
  -----------
  [libc] allow libc-hdrgen to work on windows files (#87292)

The code does some (overly simple?) checks on file syntax. These checks
assume unix line endings and fail on windows. This commit updates the
code to strip extra whitespace, making the checks more robust,
particularly in the presence of windows line endings.

Fixes #86023



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