summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/undefined-template.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Suppress undefined-template warnings when the pattern is declared in a ↵Nick Lewycky2018-01-021-0/+11
| | | | | | | | system header. The way to fix an undefined-template warning is to add lines to the header file that defines the template pattern. We should suppress the warnings when the template pattern is in a system header because we don't expect users to edit those. llvm-svn: 321665
* -Wunused-func-template: do not warn on non-template function declarations thatRichard Smith2017-01-281-0/+8
| | | | | | | were nonetheless instantiated (particularly, non-template friends declared within class templates). llvm-svn: 293358
* Warn if function or variable cannot be implicitly instantiatedSerge Pavlov2016-04-191-0/+139
With this patch compiler emits warning if it tries to make implicit instantiation of a template but cannot find the template definition. The warning can be suppressed by explicit instantiation declaration or by command line options -Wundefined-var-template and -Wundefined-func-template. The implementation follows the discussion of http://reviews.llvm.org/D12326. Differential Revision: http://reviews.llvm.org/D16396 llvm-svn: 266719
OpenPOWER on IntegriCloud