[llvm] [clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 6 10:18:27 PST 2023
================
@@ -157,6 +157,25 @@
#define LLVM_DEPRECATED(MSG, FIX) [[deprecated(MSG)]]
#endif
+// clang-format off
+#if defined(__clang__) || defined(__GNUC__)
+#define LLVM_IGNORE_DEPRECATIONS_OF_DECLARATIONS_BEGIN \
----------------
jansvoboda11 wrote:
OK, I used the suggested naming, but added `DECLARATIONS` to distinguish from semantics of the libc++ version that also ignores `-Wdeprecated`, which I don't want to (and I'm not sure there's an MSVC counterpart). I left this in `Compiler.h`, since this might be useful in other parts of LLVM and for downstream projects that have extra usages of `FileEntry::getName()`.
https://github.com/llvm/llvm-project/pull/68157
More information about the cfe-commits
mailing list