]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix a typo in `RegionStore.txt`.
authorHenry Wong <movietravelcode@outlook.com>
Wed, 8 Aug 2018 13:37:28 +0000 (13:37 +0000)
committerHenry Wong <movietravelcode@outlook.com>
Wed, 8 Aug 2018 13:37:28 +0000 (13:37 +0000)
Summary: The typo of the description for default bindings can be confusing.

Reviewers: NoQ, george.karpenkov

Reviewed By: NoQ, george.karpenkov

Subscribers: xazax.hun, szepet, a.sidorin, mikhail.ramalho, cfe-commits, MTC

Differential Revision: https://reviews.llvm.org/D50382

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

docs/analyzer/RegionStore.txt

index 5d37cf7bed99ead60081cea77c896e04ed8e103c..ef994b6401e26964577c2d532bc70ba6afe1d903 100644 (file)
@@ -118,7 +118,7 @@ sometimes zero, for static data, or "uninitialized", for stack variables).
   int manyInts[10];
   manyInts[1] = 42;   // Creates a Direct binding for manyInts[1].
   print(manyInts[1]); // Retrieves the Direct binding for manyInts[1];
-  print(manyInts[0]); // There is no Direct binding for manyInts[1].
+  print(manyInts[0]); // There is no Direct binding for manyInts[0].
                       // Is there a Default binding for the entire array?
                       // There is not, but it is a stack variable, so we use
                       // "uninitialized" as the default value (and emit a
@@ -166,6 +166,6 @@ Here's a concrete example:
     return p2.x;    // The binding for FieldRegion 'p2.x' is requested.
                     // There is no Direct binding, so we look for a Default
                     // binding to 'p2' and find the LCV.
-                    // Because it's an LCV, we look at our requested region
+                    // Because it's a LCV, we look at our requested region
                     // and see that it's the '.x' field. We ask for the value
                     // of 'p.x' within the snapshot, and get back 42.