[all-commits] [llvm/llvm-project] b86c24: Use LLVM-style include guard in regex_impl.h

Hans via All-commits all-commits at lists.llvm.org
Mon May 8 09:56:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b86c249691a7973a451bc6a586b39da64778d219
      https://github.com/llvm/llvm-project/commit/b86c249691a7973a451bc6a586b39da64778d219
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2023-05-08 (Mon, 08 May 2023)

  Changed paths:
    M llvm/lib/Support/regex_impl.h

  Log Message:
  -----------
  Use LLVM-style include guard in regex_impl.h

The previous include guard (_REGEX_H_) is also used in a macOS SDK
header (xlocale.h), causing potential for trouble. This was previously
addressed in 2b8b90a7686858b1d22cae6fcfbd0904135112aa, but renaming the
macro in line with LLVM's other include guards seems like a better fix.

Differential revision: https://reviews.llvm.org/D150117




More information about the All-commits mailing list