summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2019-07-15 17:47:22 +0000
committerSylvestre Ledru <sylvestre@debian.org>2019-07-15 17:47:22 +0000
commit56799837a41b24884f2b4f4609f00d6e9dc5607e (patch)
treeb3b2622e06e0015408f9a60285959aba35706316 /clang/docs
parent3dcd7996f1112e8f19f52a99ea7f2903572929dd (diff)
downloadbcm5719-llvm-56799837a41b24884f2b4f4609f00d6e9dc5607e.tar.gz
bcm5719-llvm-56799837a41b24884f2b4f4609f00d6e9dc5607e.zip
Update __VERSION__ to remove the hardcoded 4.2.1 version
Summary: Just like in https://reviews.llvm.org/D56803 for -dumpversion Reviewers: rnk Reviewed By: rnk Subscribers: dexonsmith, lebedev.ri, hubert.reinterpretcast, xbolva00, fedor.sergeev, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63048 llvm-svn: 366091
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/LanguageExtensions.rst2
-rw-r--r--clang/docs/ReleaseNotes.rst6
2 files changed, 8 insertions, 0 deletions
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst
index 266309c6ce2..44fa2b2ec09 100644
--- a/clang/docs/LanguageExtensions.rst
+++ b/clang/docs/LanguageExtensions.rst
@@ -324,6 +324,8 @@ option for a warning and returns true if that is a valid warning option.
...
#endif
+.. _languageextensions-builtin-macros:
+
Builtin Macros
==============
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index f89447fc96a..dadcc77f480 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -56,6 +56,12 @@ Improvements to Clang's diagnostics
Non-comprehensive list of changes in this release
-------------------------------------------------
+- The ``__VERSION__`` macro has been updated.
+ Previously this macro contained the string '4.2.1 Compatible' to achieve
+ compatibility with GCC 4.2.1, but that should no longer be necessary.
+ However, to retrieve Clang's version, please favor the one of the macro
+ defined in :ref:`clang namespaced version macros <languageextensions-builtin-macros>`.
+
- ...
OpenPOWER on IntegriCloud