aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-10-29 23:31:03 +0000
committerDouglas Gregor <dgregor@apple.com>2008-10-29 23:31:03 +0000
commit3205a7821dc5bb33a9cc4f51a500bc4e79ac967e (patch)
treee72539e025d08c18bc50f35a86183291e1f79e7d /lib
parent0c0e7a65214d0b4af68336d6d2fdce525695146a (diff)
Improve documentation for Sema::CheckReferenceInit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaDeclCXX.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index c5287f6670..817204c439 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -730,13 +730,13 @@ Sema::CompareReferenceRelationship(QualType T1, QualType T2,
/// CheckReferenceInit - Check the initialization of a reference
/// variable with the given initializer (C++ [dcl.init.ref]). Init is
/// the initializer (either a simple initializer or an initializer
-/// list), and DeclType is the type of the declaration. When Complain
-/// is true, this routine will produce diagnostics (and return true)
-/// when the declaration cannot be initialized with the given
-/// initializer. When ICS is non-null, this routine will compute the
-/// implicit conversion sequence according to C++ [over.ics.ref] and
-/// will not produce any diagnostics; when ICS is null, it will emit
-/// diagnostics when any errors are found.
+/// list), and DeclType is the type of the declaration. When ICS is
+/// non-null, this routine will compute the implicit conversion
+/// sequence according to C++ [over.ics.ref] and will not produce any
+/// diagnostics; when ICS is null, it will emit diagnostics when any
+/// errors are found. Either way, a return value of true indicates
+/// that there was a failure, a return value of false indicates that
+/// the reference initialization succeeded.
bool
Sema::CheckReferenceInit(Expr *&Init, QualType &DeclType,
ImplicitConversionSequence *ICS) {