]> granicus.if.org Git - clang/commit
Extend the notion of active template instantiations to include the
authorDouglas Gregor <dgregor@apple.com>
Tue, 10 Mar 2009 20:44:00 +0000 (20:44 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 10 Mar 2009 20:44:00 +0000 (20:44 +0000)
commitdf667e71b1daadeacb230cf94fc717843f1a138a
tree72ebde19e19176d2cc776ce1dab15dc5c6e0d5c3
parent27b152fa7443f4e24630b997c07def6b0c23925a
Extend the notion of active template instantiations to include the
context of a template-id for which we need to instantiate default
template arguments.

In the TextDiagnosticPrinter, don't suppress the caret diagnostic if
we are producing a non-note diagnostic that follows a note diagnostic
with the same location, because notes are (conceptually) a part of the
warning or error that comes before them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66572 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
include/clang/Basic/DiagnosticSemaKinds.def
include/clang/Frontend/TextDiagnosticPrinter.h
lib/AST/Type.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
lib/Sema/Sema.h
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaTemplate/instantiation-default-1.cpp
test/SemaTemplate/instantiation-default-2.cpp