[all-commits] [llvm/llvm-project] 2279f7: [lldb] Add an LLDB_DEPRECATED macro similar to LLV...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Thu Apr 6 14:56:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2279f77d2855d9caa0ece466462d34bcfdf4fb3d
https://github.com/llvm/llvm-project/commit/2279f77d2855d9caa0ece466462d34bcfdf4fb3d
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2023-04-06 (Thu, 06 Apr 2023)
Changed paths:
M lldb/include/lldb/API/SBDefines.h
M lldb/include/lldb/API/SBTarget.h
M lldb/include/lldb/lldb-defines.h
Log Message:
-----------
[lldb] Add an LLDB_DEPRECATED macro similar to LLVM_DEPRECATED
Add an LLDB_DEPRECATED macro similar to LLVM_DEPRECATED. We cannot
directly reuse the LLVM one, because it's defined in Compiler.h which is
not something we can include in the SB API.
For the SB API, the macro is undef'd if:
1. We're building the SWIG bindings. We might still want to expose
deprecated methods to our scripting users.
2. We're targeting anything older than C++14 as the [[deprecated]]
attribute was added for C++14 and the SB API can be used by
projects compiling against an older language version.
Differential revision: https://reviews.llvm.org/D147736
More information about the All-commits
mailing list