]> granicus.if.org Git - clang/commit
Teach Clang to accept and ignore -f[no-]implicit-templates.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 24 Oct 2013 09:21:37 +0000 (09:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 24 Oct 2013 09:21:37 +0000 (09:21 +0000)
commit7edf9a4e4c5a36b2e43949f454b2e6c4aa2efd1c
treeb96be4d2a62f4f248a9f8f747a806847b44ea2cf
parent6e40ca5ca48ce5862716c1b64509d068ae067246
Teach Clang to accept and ignore -f[no-]implicit-templates.

This GCC flag is useful when you want to control whether implicit
template instantiation occurs at the commandline level. Clang doesn't
currently support such controls, but technically *always* implicitly
instantiating (what Clang does, and what every other compiler still in
use does by default) is valid behavior even under
-fno-implicit-templates, it just may be slow and very wasteful. If
people really want this, we can try to implement it, but I don't have an
actual use.

This should help fix the build of libstdc++ with Clang, its build system
uses this flag.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193319 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
test/Driver/clang_f_opts.c