[PATCH] D47528: [Release Notes] Add release note for the new LLVM_DEBUG
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 4 07:03:22 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL333898: [ReleaseNotes] Add release note for the new LLVM_DEBUG macro. (authored by nzaghen, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D47528?vs=149078&id=149755#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47528
Files:
llvm/trunk/docs/ReleaseNotes.rst
Index: llvm/trunk/docs/ReleaseNotes.rst
===================================================================
--- llvm/trunk/docs/ReleaseNotes.rst
+++ llvm/trunk/docs/ReleaseNotes.rst
@@ -88,6 +88,21 @@
``llvm/Config/llvm-config.h``. If you used this macro, use the compiler-set
``_WIN32`` instead which is set exactly when ``LLVM_ON_WIN32`` used to be set.
+* The ``DEBUG`` macro has been renamed to ``LLVM_DEBUG``. The interface remains
+ the same. If you used this macro you need to migrate to the new one, you can
+ do this with the following bash command:
+
+.. code-block:: bash
+
+ git grep -l 'DEBUG' | xargs perl -pi -e 's/\bDEBUG\s?\(/LLVM_DEBUG(/g'
+
+ Additionally, you can clang-format your code to make it easier to integrate
+ future changes locally. This can be done with the following bash command:
+
+.. code-block:: bash
+
+ git diff -U0 master | ../clang/tools/clang-format/clang-format-diff.py -i -p1 -style LLVM
+
* Note..
.. NOTE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47528.149755.patch
Type: text/x-patch
Size: 976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180604/7fccea32/attachment.bin>
More information about the llvm-commits
mailing list