summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2011-09-24 17:47:39 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2011-09-24 17:47:39 +0000
commit26bcc942d009bc7ce5705e953a58c13626084128 (patch)
treed544e452ae4f0955a15b5cd9ea181c710047f44d
parentd8e4e41301178c3276728dd77e3140efd12c3bfa (diff)
downloadbcm5719-llvm-26bcc942d009bc7ce5705e953a58c13626084128.tar.gz
bcm5719-llvm-26bcc942d009bc7ce5705e953a58c13626084128.zip
Fix typos and non-doxygen-ness in a few comments.
llvm-svn: 140454
-rw-r--r--clang/include/clang/Sema/Initialization.h16
-rw-r--r--clang/lib/Sema/SemaInit.cpp6
2 files changed, 10 insertions, 12 deletions
diff --git a/clang/include/clang/Sema/Initialization.h b/clang/include/clang/Sema/Initialization.h
index d92bdae3072..268806b3b8a 100644
--- a/clang/include/clang/Sema/Initialization.h
+++ b/clang/include/clang/Sema/Initialization.h
@@ -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;
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index f710380720d..83ea813c888 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -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 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. [...]
OpenPOWER on IntegriCloud