diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-10 00:06:19 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-10 00:06:19 +0000 |
commit | fcd5db3bfa7675c9e1849f44136a8ea36f26a953 (patch) | |
tree | d8ecb7caed041125123cc33a3daf030585d0d7e8 /clang/lib/Frontend/HTMLDiagnostics.cpp | |
parent | 99d28350991851acf6721318e0f26b2eaa9efa26 (diff) | |
download | bcm5719-llvm-fcd5db3bfa7675c9e1849f44136a8ea36f26a953.tar.gz bcm5719-llvm-fcd5db3bfa7675c9e1849f44136a8ea36f26a953.zip |
Limit the template instantiation depth to some user-configurable value
(default: 99). Beyond this limit, produce an error and consider the
current template instantiation a failure.
The stack we're building to track the instantiations will, eventually,
be used to produce instantiation backtraces from diagnostics within
template instantiation. However, we're not quite there yet.
This adds a new Clang driver option -ftemplate-depth=NNN, which should
eventually be generated from the GCC command-line operation
-ftemplate-depth-NNN (note the '-' rather than the '='!). I did not
make the driver changes to do this mapping.
llvm-svn: 66513
Diffstat (limited to 'clang/lib/Frontend/HTMLDiagnostics.cpp')
0 files changed, 0 insertions, 0 deletions