]> granicus.if.org Git - clang/commitdiff
Fix typos and non-doxygen-ness in a few comments.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 24 Sep 2011 17:47:39 +0000 (17:47 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Sat, 24 Sep 2011 17:47:39 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140454 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Initialization.h
lib/Sema/SemaInit.cpp

index d92bdae3072b75ffb47d58104e7959534cb895a6..268806b3b8ad7f6f161948f3a26ce05ea6fea718 100644 (file)
@@ -638,7 +638,7 @@ public:
   };
   
 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 @@ public:
   /// 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;
index f710380720d00d1530723cd608935ea4807605ec..83ea813c88881228d1a6799722ecf28bb9fc2bdb 100644 (file)
@@ -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 @@ void InitListChecker::CheckSubElementType(const InitializedEntity &Entity,
   } 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 initializer from
+    //   initializing the aggregate member with an initializer from
     //   an initializer-list. If the initializer can initialize a
     //   member, the member is initialized. [...]