Omit needless words: Don't avoid keywords

We want to see the results of the omit-needless-words heuristics under
the assumption that we won't need to quote these argument labels in
the future, and it avoids some head-scratching to not have this
heuristic in place.

Swift SVN r31625
This commit is contained in:
Doug Gregor
2015-09-02 06:21:18 +00:00
parent 18ddc1ccdc
commit 6358c9a54f
2 changed files with 4 additions and 4 deletions

View File

@@ -364,8 +364,8 @@ StringRef swift::omitNeedlessWords(StringRef name, StringRef typeName,
// point.
StringRef newName = name.substr(0, nameWordRevIter.base().getPosition());
// If we ended up with a keyword or a name like "get" or "set", do nothing.
if (isKeyword(newName) || newName == "get" || newName == "set")
// If we ended up with a name like "get" or "set", do nothing.
if (newName == "get" || newName == "set")
return name;
// We're done.