]> granicus.if.org Git - clang/commitdiff
Fix typos
authorAlp Toker <alp@nuanti.com>
Mon, 14 Jul 2014 19:42:55 +0000 (19:42 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 14 Jul 2014 19:42:55 +0000 (19:42 +0000)
Also consolidate 'backward compatibility'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212974 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LanguageExtensions.rst
include/clang/Basic/arm_neon.td
lib/Basic/Targets.cpp
lib/Format/Format.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGenCXX/dllexport.cpp
test/CodeGenCXX/dllimport.cpp
tools/libclang/CIndexDiagnostic.cpp
tools/scan-build/sorttable.js
utils/TableGen/NeonEmitter.cpp

index ad7821af704703f1e8569bda18cb2d97546a98fc..4c600868e9ece52dc043ce9fc3a69cc664abf368 100644 (file)
@@ -91,7 +91,7 @@ feature) or 0 if not.  They can be used like this:
 
 .. _langext-has-feature-back-compat:
 
-For backwards compatibility reasons, ``__has_feature`` can also be used to test
+For backward compatibility, ``__has_feature`` can also be used to test
 for support for non-standardized features, i.e. features not prefixed ``c_``,
 ``cxx_`` or ``objc_``.
 
index f68ccea655d41de068b7de0adec930c587760a5a..0247bb5dd0d75cc22cb386f79cf0cc0f2c7d846d 100644 (file)
@@ -87,7 +87,7 @@ def call;
 def cast;
 // bitcast - Same as "cast", except a reinterpret-cast is produced:
 //             (bitcast "T", $p0) -> "*(T*)&__p0".
-//           The VAL argument is saved to a temprary so it can be used
+//           The VAL argument is saved to a temporary so it can be used
 //           as an l-value.
 def bitcast;
 // dup - Take a scalar argument and create a vector by duplicating it into
index c118c9c247433e4afff9334e45928eded60b291d..2a6623425ba1680f2ba524dc8adec50eafc36a26 100644 (file)
@@ -5459,7 +5459,7 @@ public:
         
     case 'r': // CPU registers.
     case 'd': // Equivalent to "r" unless generating MIPS16 code.
-    case 'y': // Equivalent to "r", backwards compatibility only.
+    case 'y': // Equivalent to "r", backward compatibility only.
     case 'f': // floating-point registers.
     case 'c': // $25 for indirect jumps
     case 'l': // lo register
index be9bbed9c415b73619db3d51548b9a3bab48b68a..58dd5604e42799b048f0e10b463989512004ec18 100644 (file)
@@ -104,7 +104,7 @@ struct ScalarEnumerationTraits<FormatStyle::PointerAlignmentStyle> {
     IO.enumCase(Value, "Left", FormatStyle::PAS_Left);
     IO.enumCase(Value, "Right", FormatStyle::PAS_Right);
 
-    // For backward compability.
+    // For backward compatibility.
     IO.enumCase(Value, "true", FormatStyle::PAS_Left);
     IO.enumCase(Value, "false", FormatStyle::PAS_Right);
   }
index 7674aa485418993452e9f66f8bea5ffca2aa7b52..c87942d033115d5847327979661f1b8e3d84ad76 100644 (file)
@@ -3911,7 +3911,7 @@ static void handleCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) {
   // concept, and so they use the same semantic attribute. Eventually, the
   // lockable attribute will be removed.
   //
-  // For backwards compatibility, any capability which has no specified string
+  // For backward compatibility, any capability which has no specified string
   // literal will be considered a "mutex."
   StringRef N("mutex");
   SourceLocation LiteralLoc;
index 197b18e9adf5b820b100add45f5ebdcfce5eabd0..d7ac3ae4f2279f672fb230cedb028c8e31a2b591 100644 (file)
@@ -680,7 +680,7 @@ USEMEMFUNC(ExplicitlyImportInstantiatedTemplate<int>, func)
 // MS: A dll attribute propagates through multiple levels of instantiation.
 template <typename T> struct TopClass { void func() {} };
 template <typename T> struct MiddleClass : public TopClass<T> { };
-struct __declspec(dllexport) BottomClas : public MiddleClass<int> { };
+struct __declspec(dllexport) BottomClass : public MiddleClass<int> { };
 USEMEMFUNC(TopClass<int>, func)
 // M32-DAG: define weak_odr dllexport x86_thiscallcc void @"\01?func@?$TopClass@H@@QAEXXZ"
 // G32-DAG: define linkonce_odr x86_thiscallcc void @_ZN8TopClassIiE4funcEv
index d15eea24f2f59e495f2df96449a8ce55c432b817..93b5c82760c618718d188691505a51623beae8f2 100644 (file)
@@ -765,7 +765,7 @@ USEMEMFUNC(ExplicitlyImportInstantiatedTemplate<int>, func)
 // MS: A dll attribute propagates through multiple levels of instantiation.
 template <typename T> struct TopClass { void func() {} };
 template <typename T> struct MiddleClass : public TopClass<T> { };
-struct __declspec(dllimport) BottomClas : public MiddleClass<int> { };
+struct __declspec(dllimport) BottomClass : public MiddleClass<int> { };
 USEMEMFUNC(TopClass<int>, func)
 // M32-DAG: {{declare|define available_externally}} dllimport x86_thiscallcc void @"\01?func@?$TopClass@H@@QAEXXZ"
 // G32-DAG: define linkonce_odr x86_thiscallcc void @_ZN8TopClassIiE4funcEv
index cb977ec3b1713f25470b108dbe5f3f5b7cf32a91..0d97ebd9335bef5be4271de81ecba388d4cf4446 100644 (file)
@@ -412,7 +412,7 @@ unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) {
 }
   
 CXString clang_getDiagnosticCategoryName(unsigned Category) {
-  // Kept for backwards compatibility.
+  // Kept for backward compatibility.
   return cxstring::createRef(DiagnosticIDs::getCategoryNameFromID(Category));
 }
   
index 03ebd92631ce19966d25b793e02cb12954af82c2..32faa078d89934be0a0541f2b7cd6b4a667b0060 100644 (file)
@@ -55,7 +55,7 @@ sorttable = {
     // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as
     // "total" rows, for example). This is B&R, since what you're supposed
     // to do is put them in a tfoot. So, if there are sortbottom rows,
-    // for backwards compatibility, move them to tfoot (creating it if needed).
+    // for backward compatibility, move them to tfoot (creating it if needed).
     sortbottomrows = [];
     for (var i=0; i<table.rows.length; i++) {
       if (table.rows[i].className.search(/\bsortbottom\b/) != -1) {
index d7e418a810d40d93a6807dc070b298fd6ea5c134..cd27fbcdf697df18426b3d8ed4e0ce8ad9ebdb6c 100644 (file)
@@ -2093,9 +2093,8 @@ NeonEmitter::genIntrinsicRangeCheckCode(raw_ostream &OS,
     // their own builtin as they use the non-splat variant.
     if (Def->hasSplat())
       continue;
-    // Functions which do not have an immediate do not ned to have range
-    // checking
-    // code emitted.
+    // Functions which do not have an immediate do not need to have range
+    // checking code emitted.
     if (!Def->hasImmediate())
       continue;
     if (Emitted.find(Def->getMangledName()) != Emitted.end())
@@ -2121,7 +2120,7 @@ NeonEmitter::genIntrinsicRangeCheckCode(raw_ostream &OS,
 
       UpperBound = utostr(Def->getReturnType().getElementSizeInBits() - 1);
     } else if (R->getValueAsBit("isShift")) {
-      // Builtins which are overloaded by type will need to have thier upper
+      // Builtins which are overloaded by type will need to have their upper
       // bound computed at Sema time based on the type constant.
 
       // Right shifts have an 'r' in the name, left shifts do not.