]> granicus.if.org Git - clang/commit
Improve template diffing handling of default integer values.
authorRichard Trieu <rtrieu@google.com>
Fri, 15 Mar 2013 23:55:09 +0000 (23:55 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 15 Mar 2013 23:55:09 +0000 (23:55 +0000)
commit70e82dc7a254054f0de491493489da162e63c364
treeda4d657969abca5c803808a0573526c5db78c594
parent0621c45dcd4c5f43df0de5a2febae525d3287b74
Improve template diffing handling of default integer values.

When the template argument is both default and value dependent, the expression
retrieved for the default argument cannot be evaluated, thus never matching
any argument value.  To get the proper value, get the template argument
from the desugared template specialization.  Also, output the original
expression to provide more information about the argument mismatch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTDiagnostic.cpp
test/Misc/diag-template-diffing-color.cpp
test/Misc/diag-template-diffing-cxx98.cpp
test/Misc/diag-template-diffing.cpp