[PATCH] D122766: [clang] Use forward slash as the path separator for Windows in __FILE__, __builtin_FILE(), and std::source_location

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 5 07:43:42 PDT 2022


hans added a comment.

> My feeling is that the default behavior on Windows needs to be to use backslashes and not forward slashes.

Okay, how would folks feel about always canonicalizing `__FILE__` etc. to use //backslashes// when targeting Windows?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122766/new/

https://reviews.llvm.org/D122766



More information about the cfe-commits mailing list