]> granicus.if.org Git - clang/commitdiff
Miscellaneous speling fixes.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 20 Oct 2013 11:47:15 +0000 (11:47 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 20 Oct 2013 11:47:15 +0000 (11:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193046 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
include/clang-c/CXCompilationDatabase.h
include/clang-c/Index.h
include/clang/AST/DeclCXX.h
include/clang/AST/Expr.h
include/clang/AST/Stmt.h
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersMacros.h
include/clang/Frontend/ASTUnit.h
include/clang/Sema/Initialization.h
include/clang/Sema/Sema.h
include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp

index ff1ec63db057eeef09171dd5d7600c7e68bca8fc..198fd73bf88a7f2475dce05d8cd61b4975d63ce1 100644 (file)
@@ -58,7 +58,7 @@ typedef void * CXCompileCommand;
  */
 typedef enum  {
   /*
-   * \brief No error occured
+   * \brief No error occurred
    */
   CXCompilationDatabase_NoError = 0,
 
index c8cdcb785517a64353a149bf05a0a6ec5fff2fb9..cd130e3746e6174ea51422cb0b6da823f8b2de4b 100644 (file)
@@ -1946,7 +1946,7 @@ enum CXCursorKind {
    */
   CXCursor_CompoundStmt                  = 202,
 
-  /** \brief A case statment.
+  /** \brief A case statement.
    */
   CXCursor_CaseStmt                      = 203,
 
index 7681a16b0e2061f19a18e770a32a90da1bf810e9..bbf35604402ffa8ae3974fa12e724dd1707995c3 100644 (file)
@@ -1431,7 +1431,7 @@ public:
   /// returns false if the class has non-computable base classes.
   ///
   /// \param BaseMatches Callback invoked for each (direct or indirect) base
-  /// class of this type, or if \p AllowShortCircut is true then until a call
+  /// class of this type, or if \p AllowShortCircuit is true then until a call
   /// returns false.
   ///
   /// \param UserData Passed as the second argument of every call to
index 9c8ad69dae1f5b83c5f0d453a953eb723529d9f1..04ec751b288229b1c086cdc02adb1636a7bab17e 100644 (file)
@@ -893,7 +893,7 @@ class DeclRefExpr : public Expr {
   bool hasFoundDecl() const { return DeclRefExprBits.HasFoundDecl; }
 
   /// \brief Helper to retrieve the optional NamedDecl through which this
-  /// reference occured.
+  /// reference occurred.
   NamedDecl *&getInternalFoundDecl() {
     assert(hasFoundDecl());
     if (hasQualifier())
@@ -902,7 +902,7 @@ class DeclRefExpr : public Expr {
   }
 
   /// \brief Helper to retrieve the optional NamedDecl through which this
-  /// reference occured.
+  /// reference occurred.
   NamedDecl *getInternalFoundDecl() const {
     return const_cast<DeclRefExpr *>(this)->getInternalFoundDecl();
   }
@@ -1000,7 +1000,7 @@ public:
     return getInternalQualifierLoc();
   }
 
-  /// \brief Get the NamedDecl through which this reference occured.
+  /// \brief Get the NamedDecl through which this reference occurred.
   ///
   /// This Decl may be different from the ValueDecl actually referred to in the
   /// presence of using declarations, etc. It always returns non-NULL, and may
@@ -3733,7 +3733,7 @@ class InitListExpr : public Expr {
   SourceLocation LBraceLoc, RBraceLoc;
 
   /// The alternative form of the initializer list (if it exists).
-  /// The int part of the pair stores whether this initalizer list is
+  /// The int part of the pair stores whether this initializer list is
   /// in semantic form. If not null, the pointer points to:
   ///   - the syntactic form, if this is in semantic form;
   ///   - the semantic form, if this is in syntactic form.
@@ -3918,7 +3918,7 @@ public:
 /// The InitListExpr contains three DesignatedInitExprs, the first of
 /// which covers @c [2].y=1.0. This DesignatedInitExpr will have two
 /// designators, one array designator for @c [2] followed by one field
-/// designator for @c .y. The initalization expression will be 1.0.
+/// designator for @c .y. The initialization expression will be 1.0.
 class DesignatedInitExpr : public Expr {
 public:
   /// \brief Forward declaration of the Designator class.
index 4674ea0e7187803558e46e395fd54864c5703900..ace53d83b3cf8232b6a83e6505bed8ba36a6000f 100644 (file)
@@ -547,7 +547,7 @@ public:
   CompoundStmt(const ASTContext &C, ArrayRef<Stmt*> Stmts,
                SourceLocation LB, SourceLocation RB);
 
-  // \brief Build an empty compound statment with a location.
+  // \brief Build an empty compound statement with a location.
   explicit CompoundStmt(SourceLocation Loc)
     : Stmt(CompoundStmtClass), Body(0), LBracLoc(Loc), RBracLoc(Loc) {
     CompoundStmtBits.NumStmts = 0;
index ec3b7171943430b4c22cd4abd326c2c140a1bb01..d158dd763c574367ff6e14736d190cddf290541a 100644 (file)
@@ -2307,7 +2307,7 @@ AST_POLYMORPHIC_MATCHER_P(equalsBoundNode, AST_POLYMORPHIC_SUPPORTED_TYPES_4(
 /// \code
 ///   if (A* a = GetAPointer()) {}
 /// \endcode
-/// hasConditionVariableStatment(...)
+/// hasConditionVariableStatement(...)
 ///   matches 'A* a = GetAPointer()'.
 AST_MATCHER_P(IfStmt, hasConditionVariableStatement,
               internal::Matcher<DeclStmt>, InnerMatcher) {
index 0a22f4537a791d1303c8c58d3314f9e8a3760f61..e6c959144c058715b6a158f047740ec3c3d97369 100644 (file)
 /// to another.
 ///
 /// For a specific \c SpecificType, the traversal is done using 
-/// \c SpecificType::FunctionName. The existance of such a function determines
+/// \c SpecificType::FunctionName. The existence of such a function determines
 /// whether a corresponding matcher can be used on \c SpecificType.
 #define AST_TYPE_TRAVERSE_MATCHER(MatcherName, FunctionName, ReturnTypesF)     \
   namespace internal {                                                         \
index 166f1a26aed406219037f7bb15871dd05727ed53..43d77f0171e96b2a4e5575398bd06fe1e6c0bfdd 100644 (file)
@@ -699,10 +699,10 @@ public:
   /// lifetime is expected to extend past that of the returned ASTUnit.
   ///
   /// \param Action - The ASTFrontendAction to invoke. Its ownership is not
-  /// transfered.
+  /// transferred.
   ///
   /// \param Unit - optionally an already created ASTUnit. Its ownership is not
-  /// transfered.
+  /// transferred.
   ///
   /// \param Persistent - if true the returned ASTUnit will be complete.
   /// false means the caller is only interested in getting info through the
index 7681fcec0ef1f2f9c2bd32714d690a420518587a..3a1e78dd1232e42a6d5126a6153f5ff3c363f985 100644 (file)
@@ -129,7 +129,7 @@ private:
     DeclaratorDecl *VariableOrMember;
     
     /// \brief When Kind == EK_RelatedResult, the ObjectiveC method where
-    /// result type was implicitly changed to accomodate ARC semantics.
+    /// result type was implicitly changed to accommodate ARC semantics.
     ObjCMethodDecl *MethodDecl;
 
     /// \brief When Kind == EK_Parameter, the ParmVarDecl, with the
index 65f07a88763e5c7604150760a635aba445102421..b1906ab4c6699c02fa7daf2124ca34406fc5ba3d 100644 (file)
@@ -626,7 +626,7 @@ public:
 
     /// \brief The current context is "potentially evaluated" in C++11 terms,
     /// but the expression is evaluated at compile-time (like the values of
-    /// cases in a switch statment).
+    /// cases in a switch statement).
     ConstantEvaluated,
 
     /// \brief The current expression is potentially evaluated at run time,
index e8d25bcc3a4c111558b5e49ccb3bef90c4676e33..5978299701cf44b1466a9c70a6811b23514d1510 100644 (file)
@@ -46,7 +46,7 @@ enum ArgEffect {
 
   /// The argument has its reference count decreased by 1 to model
   /// a transferred bridge cast under ARC.
-  DecRefBridgedTransfered,
+  DecRefBridgedTransferred,
 
   /// The argument has its reference count increased by 1.  This is as
   /// if a -retain message has been sent to the argument.  This differs
index 0e827841d0ccd3843678cafcf256de5a2bada4c3..f808ac280639f2330754a84f1b3b882da93fd1a2 100644 (file)
@@ -290,7 +290,7 @@ public:
   /// for the diagnostic location.
   static const Stmt *getStmt(const ExplodedNode *N);
 
-  /// \brief Retrieve the statement corresponding to the sucessor node.
+  /// \brief Retrieve the statement corresponding to the successor node.
   static const Stmt *getNextStmt(const ExplodedNode *N);
 };
 
index 30456027d7cf4c975a8ee66677d46bc059486ea9..2277b3e1fdd6912d3309a9299478ec5644100b00 100644 (file)
@@ -818,7 +818,7 @@ static ArgEffect getStopTrackingHardEquivalent(ArgEffect E) {
   switch (E) {
   case DoNothing:
   case Autorelease:
-  case DecRefBridgedTransfered:
+  case DecRefBridgedTransferred:
   case IncRef:
   case IncRefMsg:
   case MakeCollectable: