summaryrefslogtreecommitdiff
path: root/docs/UsersManual.rst
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-02-22 01:59:51 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-02-22 01:59:51 +0000
commit9e738cc9d4b4655c44dadeb22f3a314daf43b995 (patch)
tree0bf50b2a66275da24dd3406e62b032e5a9ea815f /docs/UsersManual.rst
parent5e5440ba9c135f523f72e7e7c5da59d390d697c5 (diff)
downloadclang-9e738cc9d4b4655c44dadeb22f3a314daf43b995.tar.gz
clang-9e738cc9d4b4655c44dadeb22f3a314daf43b995.tar.bz2
clang-9e738cc9d4b4655c44dadeb22f3a314daf43b995.tar.xz
Add -fbracket-depth=N, analogous to -ftemplate-depth= and -fconstexpr-depth=,
to control the check for the C 5.2.4.1 / C++ [implimits] restriction on nesting levels for parentheses, brackets and braces. Some code with heavy macro use exceeds the default limit of 256, but we don't want to increase it generally to avoid stack overflow on stack-constrained systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.rst')
-rw-r--r--docs/UsersManual.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst
index f82b34b287..ea613d13a0 100644
--- a/docs/UsersManual.rst
+++ b/docs/UsersManual.rst
@@ -1178,6 +1178,11 @@ features <http://clang.llvm.org/cxx_status.html>`_ are also implemented.
Controlling implementation limits
---------------------------------
+.. option:: -fbracket-depth=N
+
+ Sets the limit for nested parentheses, brackets, and braces to N. The
+ default is 256.
+
.. option:: -fconstexpr-depth=N
Sets the limit for recursive constexpr function invocations to N. The