]> granicus.if.org Git - clang/commit
Rename the first of 11 DeduceTemplateArguments overloads.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 17 Jan 2012 22:49:52 +0000 (22:49 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Tue, 17 Jan 2012 22:49:52 +0000 (22:49 +0000)
commitbb95e51a3668c50133b989467cd44ba4d8a42e8a
tree2d5f43289b079a80c0fe45b2a6cab05a3c9bbd45
parentfe5922809ec906390769a2cf0a765f395fa0c599
Rename the first of 11 DeduceTemplateArguments overloads.

There are 5 functions of this name in Sema, and 6 more static helpers in
SemaTemplateDeduction.cpp. The Sema functions have jobs like "deduce for
function call", "deduce for taking the address", etc. The static helpers
have jobs like "deduce by comparing two types", "deduce by comparing two
lists of types", "deduce by comparing two template arguments", etc.
The fact that they all are called the same and only differ in two of their
6 or more arguments makes the code using them very hard to read.

Here I rename the one function that concerns me most at the moment, but
as a matter of cleanup, the others will eventually be renamed as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp