diff options
author | Chris Lattner <sabre@nondot.org> | 2011-12-15 19:06:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-12-15 19:06:36 +0000 |
commit | ee9c24a40b5ec31a6a3c1f292f71c9170a693ec2 (patch) | |
tree | ea97ce9eb60211affc25bf80a7525a3002ed76ca /clang/docs/LanguageExtensions.html | |
parent | c44b5e469bb9785ece2af810c03bb4e3fb56d991 (diff) | |
download | bcm5719-llvm-ee9c24a40b5ec31a6a3c1f292f71c9170a693ec2.tar.gz bcm5719-llvm-ee9c24a40b5ec31a6a3c1f292f71c9170a693ec2.zip |
clarify that clang version number macros are marketing version #'s, not something useful.
llvm-svn: 146672
Diffstat (limited to 'clang/docs/LanguageExtensions.html')
-rw-r--r-- | clang/docs/LanguageExtensions.html | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/clang/docs/LanguageExtensions.html b/clang/docs/LanguageExtensions.html index 79b96f6ad50..f8c0d4f167c 100644 --- a/clang/docs/LanguageExtensions.html +++ b/clang/docs/LanguageExtensions.html @@ -357,20 +357,25 @@ is used in the file argument.</p> <dd>Defined when compiling with Clang</dd> <dt><code>__clang_major__</code></dt> - <dd>Defined to the major version number of Clang (e.g., the 2 in - 2.0.1).</dd> + <dd>Defined to the major marketing version number of Clang (e.g., the + 2 in 2.0.1). Note that marketing version numbers should not be used to + check for language features, as different vendors use different numbering + schemes. Instead, use the <a href="#feature_check">feature checking + macros</a>.</dd> <dt><code>__clang_minor__</code></dt> <dd>Defined to the minor version number of Clang (e.g., the 0 in - 2.0.1).</dd> + 2.0.1). Note that marketing version numbers should not be used to + check for language features, as different vendors use different numbering + schemes. Instead, use the <a href="#feature_check">feature checking + macros</a>.</dd> <dt><code>__clang_patchlevel__</code></dt> - <dd>Defined to the patch level of Clang (e.g., the 1 in 2.0.1).</dd> + <dd>Defined to the marketing patch level of Clang (e.g., the 1 in 2.0.1).</dd> <dt><code>__clang_version__</code></dt> - <dd>Defined to a string that captures the Clang version, including - the Subversion tag or revision number, e.g., "1.5 (trunk - 102332)".</dd> + <dd>Defined to a string that captures the Clang marketing version, including + the Subversion tag or revision number, e.g., "1.5 (trunk 102332)".</dd> </dl> <!-- ======================================================================= --> |