summaryrefslogtreecommitdiffstats
path: root/src/edit_distance.cc
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Make StringPiece data members private."Nico Weber2012-07-281-5/+5
| | | | | | This reverts commit 904c9610fe66c4f4bd63a07d6f057c8603d24394. The commit caused issue #380, this revert fixes it. The revert also makes the test from the previous commit pass.
* Make StringPiece data members private.Thiago Farina2012-06-301-5/+5
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* Add spelling suggestions for four cases:Nico Weber2011-11-161-2/+0
| | | | | | | | | | | 1. For targets, when invoking ninja to build a target. 2. For targets, when doing a "query" command. 3. For command names. 4. For the subcommands of the "targets" command. Also change CmdTargets() to call LookupNode() instead of GetNode() -- since the result was checked for NULL, that's probably what was intended here originally.
* Add a EditDistance() function based on the one in ↵Nico Weber2011-11-131-0/+68
llvm/lib/Support/StringRef.cpp.