]> granicus.if.org Git - clang/commitdiff
Fix typos of occurred and occurrence
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Wed, 24 Jan 2018 10:26:09 +0000 (10:26 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Wed, 24 Jan 2018 10:26:09 +0000 (10:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323316 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ClangFormatStyleOptions.rst
include/clang/Analysis/CloneDetection.h
include/clang/Format/Format.h
include/clang/Lex/VariadicMacroSupport.h
include/clang/Tooling/Core/Diagnostic.h
lib/Analysis/CloneDetection.cpp
test/Driver/hexagon-hvx.c
tools/clang-import-test/clang-import-test.cpp
tools/scan-build-py/libscanbuild/analyze.py

index ec6a78ad67cd939e9058d8c97f36c7a89baa78ff..ea43f19a3c7b3e17a911e0237bf21de0206839d6 100644 (file)
@@ -1590,7 +1590,7 @@ the configuration (without a prefix: ``Auto``).
   precedence over a matching enclosing function name for determining the
   language of the raw string contents.
 
-  If a canonical delimiter is specified, occurences of other delimiters for
+  If a canonical delimiter is specified, occurrences of other delimiters for
   the same language will be updated to the canonical if possible.
 
   There should be at most one specification per language and each delimiter
index 051b9236658cf458efc4399b2ea1630c757e61ee..5ef44570186b0f38b47837a22002db70d8c686e7 100644 (file)
@@ -351,7 +351,7 @@ struct FilenamePatternConstraint {
 /// Analyzes the pattern of the referenced variables in a statement.
 class VariablePattern {
 
-  /// Describes an occurence of a variable reference in a statement.
+  /// Describes an occurrence of a variable reference in a statement.
   struct VariableOccurence {
     /// The index of the associated VarDecl in the Variables vector.
     size_t KindID;
@@ -362,7 +362,7 @@ class VariablePattern {
         : KindID(KindID), Mention(Mention) {}
   };
 
-  /// All occurences of referenced variables in the order of appearance.
+  /// All occurrences of referenced variables in the order of appearance.
   std::vector<VariableOccurence> Occurences;
   /// List of referenced variables in the order of appearance.
   /// Every item in this list is unique.
index e5bf1f3ebe9bff90638602d69e0874a1059a63d0..bffa6ddac222163a2cec84c9a10fbf2d36cb7402 100644 (file)
@@ -1395,7 +1395,7 @@ struct FormatStyle {
   /// precedence over a matching enclosing function name for determining the
   /// language of the raw string contents.
   ///
-  /// If a canonical delimiter is specified, occurences of other delimiters for
+  /// If a canonical delimiter is specified, occurrences of other delimiters for
   /// the same language will be updated to the canonical if possible.
   ///
   /// There should be at most one specification per language and each delimiter
index cebaf15187de0c1bf28bfc26130e269d7a6d7bea..db1ce0e6be1ec55bce72f264bdf574df0afbb914 100644 (file)
@@ -55,7 +55,7 @@ namespace clang {
 
     /// Client code should call this function as soon as the Preprocessor has
     /// either completed lexing the macro's definition tokens, or an error
-    /// occured and the context is being exited.  This function is idempotent
+    /// occurred and the context is being exited.  This function is idempotent
     /// (might be explicitly called, and then reinvoked via the destructor).
     void exitScope() {
       Ident__VA_ARGS__->setIsPoisoned(true);
index b4920d4fe456d1a65d939d01124683cbe77f325c..c8307c88df8386ed463b83ecb90b170ee3b6f154 100644 (file)
@@ -33,7 +33,7 @@ struct DiagnosticMessage {
   DiagnosticMessage(llvm::StringRef Message = "");
 
   /// \brief Constructs a diagnostic message with anoffset to the diagnostic
-  /// within the file where the problem occured.
+  /// within the file where the problem occurred.
   ///
   /// \param Loc Should be a file location, it is not meaningful for a macro
   /// location.
index 098803f9a417db4b644dc3f72bd5a4d2fb4e67b0..3c64f14387a5b058a649a1e98c109fe64bbc35bd 100644 (file)
@@ -534,14 +534,14 @@ void VariablePattern::addVariableOccurence(const VarDecl *VarDecl,
   // First check if we already reference this variable
   for (size_t KindIndex = 0; KindIndex < Variables.size(); ++KindIndex) {
     if (Variables[KindIndex] == VarDecl) {
-      // If yes, add a new occurence that points to the existing entry in
+      // If yes, add a new occurrence that points to the existing entry in
       // the Variables vector.
       Occurences.emplace_back(KindIndex, Mention);
       return;
     }
   }
   // If this variable wasn't already referenced, add it to the list of
-  // referenced variables and add a occurence that points to this new entry.
+  // referenced variables and add a occurrence that points to this new entry.
   Occurences.emplace_back(Variables.size(), Mention);
   Variables.push_back(VarDecl);
 }
index 171d586760ed34f6c5022e83aa7a8a47918834e8..47f2c40faf15f98640e59b74dbb40e6454a58c26 100644 (file)
@@ -65,7 +65,7 @@
 // RUN:  2>&1 | FileCheck -check-prefix=CHECK-HVXEQ %s
 // CHECK-HVXEQ: "-target-feature" "+hvxv62"
 
-// Honor the last occured -mhvx=, -mhvx flag.
+// Honor the last occurred -mhvx=, -mhvx flag.
 // RUN: %clang -c %s -### -target hexagon-unknown-elf -mv60 -mhvx=v62 -mhvx\
 // RUN:  2>&1 | FileCheck -check-prefix=CHECK-HVXEQ-PRE %s
 // CHECK-HVXEQ-PRE-NOT: "-target-feature" "+hvxv62"
index 1ea7ee3611df1b926eecee6bbd590580525a877c..4871acdf36142a073cd2aec7704529cfbcd2d191 100644 (file)
@@ -327,7 +327,7 @@ llvm::Expected<CIAndOrigins> Parse(const std::string &Path,
     CG.GetModule()->print(llvm::outs(), nullptr);
   if (CI.getDiagnosticClient().getNumErrors())
     return llvm::make_error<llvm::StringError>(
-        "Errors occured while parsing the expression.", std::error_code());
+        "Errors occurred while parsing the expression.", std::error_code());
   return std::move(CI);
 }
 
index b5614b5b6da050e8d6f21c1c00fe0a00af7076c1..6c129bd7c6d0891a56676497b003f4a5d0f9be31 100644 (file)
@@ -317,7 +317,7 @@ def run(opts):
 
         return arch_check(opts)
     except Exception:
-        logging.error("Problem occured during analyzis.", exc_info=1)
+        logging.error("Problem occurred during analyzis.", exc_info=1)
         return None