[cfe-commits] r140454 - in /cfe/trunk: include/clang/Sema/Initialization.h lib/Sema/SemaInit.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Sat Sep 24 10:47:40 PDT 2011
Author: cornedbee
Date: Sat Sep 24 12:47:39 2011
New Revision: 140454
URL: http://llvm.org/viewvc/llvm-project?rev=140454&view=rev
Log:
Fix typos and non-doxygen-ness in a few comments.
Modified:
cfe/trunk/include/clang/Sema/Initialization.h
cfe/trunk/lib/Sema/SemaInit.cpp
Modified: cfe/trunk/include/clang/Sema/Initialization.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Initialization.h?rev=140454&r1=140453&r2=140454&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Initialization.h (original)
+++ cfe/trunk/include/clang/Sema/Initialization.h Sat Sep 24 12:47:39 2011
@@ -638,7 +638,7 @@
};
private:
- /// \brief The reason why initialization failued.
+ /// \brief The reason why initialization failed.
FailureKind Failure;
/// \brief The failed result of overload resolution.
@@ -738,13 +738,13 @@
/// constructor.
bool isConstructorInitialization() const;
- // \brief Returns whether the last step in this initialization sequence is a
- // narrowing conversion, defined by C++0x [dcl.init.list]p7.
- //
- // If this function returns true, *isInitializerConstant will be set to
- // describe whether *Initializer was a constant expression. If
- // *isInitializerConstant is set to true, *ConstantValue will be set to the
- // evaluated value of *Initializer.
+ /// \brief Returns whether the last step in this initialization sequence is a
+ /// narrowing conversion, defined by C++0x [dcl.init.list]p7.
+ ///
+ /// If this function returns true, *isInitializerConstant will be set to
+ /// describe whether *Initializer was a constant expression. If
+ /// *isInitializerConstant is set to true, *ConstantValue will be set to the
+ /// evaluated value of *Initializer.
bool endsWithNarrowing(ASTContext &Ctx, const Expr *Initializer,
bool *isInitializerConstant,
APValue *ConstantValue) const;
Modified: cfe/trunk/lib/Sema/SemaInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaInit.cpp?rev=140454&r1=140453&r2=140454&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaInit.cpp (original)
+++ cfe/trunk/lib/Sema/SemaInit.cpp Sat Sep 24 12:47:39 2011
@@ -7,9 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This file implements semantic analysis for initializers. The main entry
-// point is Sema::CheckInitList(), but all of the work is performed
-// within the InitListChecker class.
+// This file implements semantic analysis for initializers.
//
//===----------------------------------------------------------------------===//
@@ -733,7 +731,7 @@
} else if (SemaRef.getLangOptions().CPlusPlus) {
// C++ [dcl.init.aggr]p12:
// All implicit type conversions (clause 4) are considered when
- // initializing the aggregate member with an ini- tializer from
+ // initializing the aggregate member with an initializer from
// an initializer-list. If the initializer can initialize a
// member, the member is initialized. [...]
More information about the cfe-commits
mailing list