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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Makes sense to me.
JDevlieghere, do you remember why you went with that other approach?
llvm/lib/Support/regex_impl.h | ||
---|---|---|
108 |
llvm/lib/Support/regex_impl.h | ||
---|---|---|
108 | Thanks! Will fix when committing. |
Comment Actions
Let's follow up in https://reviews.llvm.org/D150127 which proposes to remove the old work-around.