Fix a variety of user-visible and comment typos

llvm-svn: 196038
This commit is contained in:
Alp Toker 2013-12-01 05:08:12 +00:00
parent 303a6481cb
commit 9a5134e6be
13 changed files with 21 additions and 21 deletions

View File

@ -114,7 +114,7 @@ private:
/// NewLineFlags).
///
/// Source files often contain a file header (copyright, license, explanation
/// of the file content). An \#include should preferrably be put after this.
/// of the file content). An \#include should preferably be put after this.
std::pair<unsigned, unsigned>
findFileHeaderEndOffset(clang::FileID FID) const;

View File

@ -24,7 +24,7 @@
/// provided by the user through command line options.
class IncludeExcludeInfo {
public:
/// \brief Read and parse a comma-seperated lists of paths from
/// \brief Read and parse a comma-separated lists of paths from
/// \a IncludeString and \a ExcludeString.
///
/// Returns error_code::success() on successful parse of the strings or

View File

@ -1113,8 +1113,8 @@ void LoopFixer::run(const MatchFinder::MatchResult &Result) {
DerefByConstRef = InitPointeeType.isConstQualified();
}
} else {
// If the de-referece operator return by value then test for the canonical
// const qualification of the init variable type.
// If the dereference operator returns by value then test for the
// canonical const qualification of the init variable type.
DerefByConstRef = CanonicalInitVarType.isConstQualified();
}
} else if (FixerKind == LFK_PseudoArray) {

View File

@ -54,7 +54,7 @@ static const StatementMatcher IncrementVarMatcher =
/// \code
/// for (int i = 0; j < 3 + 2; ++k) { ... }
/// \endcode
/// The following string identifers are bound to the parts of the AST:
/// The following string identifiers are bound to these parts of the AST:
/// ConditionVarName: 'j' (as a VarDecl)
/// ConditionBoundName: '3 + 2' (as an Expr)
/// InitVarName: 'i' (as a VarDecl)
@ -262,7 +262,7 @@ StatementMatcher makePseudoArrayLoopMatcher() {
// Test that the incoming type has a record declaration that has methods
// called 'begin' and 'end'. If the incoming type is const, then make sure
// these methods are also marked const.
//
//
// FIXME: To be completely thorough this matcher should also ensure the
// return type of begin/end is an iterator that dereferences to the same as
// what operator[] or at() returns. Such a test isn't likely to fail except

View File

@ -187,8 +187,8 @@ public:
private:
std::string Name;
/// GeneratedDecls keeps track of ForStmts which have been tranformed, mapping
/// each modified ForStmt to the variable generated in the loop.
/// GeneratedDecls keeps track of ForStmts which have been transformed,
/// mapping each modified ForStmt to the variable generated in the loop.
const StmtGeneratedVarNameMap *GeneratedDecls;
bool Found;

View File

@ -74,7 +74,7 @@ static bool paramReferredExactlyOnce(const CXXConstructorDecl *Ctor,
return Visitor.hasExactlyOneUsageIn(Ctor);
}
/// \brief Find all references to \p ParamDecl accross all of the
/// \brief Find all references to \p ParamDecl across all of the
/// redeclarations of \p Ctor.
static void
collectParamDecls(const CXXConstructorDecl *Ctor, const ParmVarDecl *ParamDecl,
@ -98,7 +98,7 @@ void ConstructorParamReplacer::run(const MatchFinder::MatchResult &Result) {
Result.Nodes.getNodeAs<CXXCtorInitializer>(PassByValueInitializerId);
assert(Ctor && ParamDecl && Initializer && "Bad Callback, missing node.");
// Check this now to avoid unecessary work. The param locations are checked
// Check this now to avoid unnecessary work. The param locations are checked
// later.
if (!Owner.isFileModifiable(SM, Initializer->getSourceLocation()))
return;

View File

@ -116,7 +116,7 @@ cl::opt<std::string> SupportedCompilers(
"for-compilers", cl::value_desc("string"),
cl::desc("Select transforms targeting the intersection of\n"
"language features supported by the given compilers.\n"
"Takes a comma-seperated list of <compiler>-<version>.\n"
"Takes a comma-separated list of <compiler>-<version>.\n"
"\t<compiler> can be any of: clang, gcc, icc, msvc\n"
"\t<version> is <major>[.<minor>]\n"),
cl::cat(GeneralCategory));
@ -149,12 +149,12 @@ static cl::opt<std::string> FormatStyleConfig(
/// Include/Exclude Options
static cl::opt<std::string>
IncludePaths("include",
cl::desc("Comma seperated list of paths to consider to be "
cl::desc("Comma-separated list of paths to consider to be "
"transformed"),
cl::cat(IncludeExcludeCategory));
static cl::opt<std::string>
ExcludePaths("exclude", cl::desc("Comma seperated list of paths that can not "
ExcludePaths("exclude", cl::desc("Comma-separated list of paths that can not "
"be transformed"),
cl::cat(IncludeExcludeCategory));
@ -167,7 +167,7 @@ IncludeFromFile("include-from", cl::value_desc("filename"),
static cl::opt<std::string>
ExcludeFromFile("exclude-from", cl::value_desc("filename"),
cl::desc("File containing a list of paths that can not be "
"transforms"),
"transformed"),
cl::cat(IncludeExcludeCategory));
////////////////////////////////////////////////////////////////////////////////

View File

@ -83,7 +83,7 @@ private:
/// FIXME: Note that this inherits from \c AnalysisAction as this is the only
/// way we can currently get to AnalysisAction::CreateASTConsumer. Ideally
/// we'd want to build a more generic way to use \c FrontendAction based
/// checkers in clang-tidy, but that needs some preperation work first.
/// checkers in clang-tidy, but that needs some preparation work first.
class ClangTidyAction : public ento::AnalysisAction {
public:
ClangTidyAction(StringRef CheckRegexString,

View File

@ -42,7 +42,7 @@ Command Line Options
.. option:: -ignore <callback-name-list>
This option specifies a comma-seperated list of names of callbacks
This option specifies a comma-separated list of names of callbacks
that shouldn't be traced. It can be used to eliminate unwanted
trace output. The callback names are the name of the actual
callback function names in the PPCallbacks class:

View File

@ -753,7 +753,7 @@ int main(int Argc, const char **Argv) {
// Check for the same entity being defined in multiple places.
for (EntityMap::iterator E = Entities.begin(), EEnd = Entities.end();
E != EEnd; ++E) {
// If only one occurance, exit early.
// If only one occurrence, exit early.
if (E->second.size() == 1)
continue;
// Clear entity locations.
@ -771,7 +771,7 @@ int main(int Argc, const char **Argv) {
for (EntryBinArray::iterator DI = EntryBins.begin(), DE = EntryBins.end();
DI != DE; ++DI, ++KindIndex) {
int ECount = DI->size();
// If only 1 occurance, skip;
// If only 1 occurrence, skip;
if (ECount <= 1)
continue;
LocationArray::iterator FI = DI->begin();

View File

@ -13,7 +13,7 @@
// This test uses a compilation database
// RUN: sed -e 's#$(path)#%/T/CompilationInc#g' %S/Inputs/compile_commands.json > %T/CompilationInc/compile_commands.json
// Check that files are tranformed when -p and -include are specified.
// Check that files are transformed when -p and -include are specified.
// RUN: cp %S/Inputs/compilations.cpp %T/CompilationInc/a1
// RUN: cp %S/Inputs/compilations.cpp %T/CompilationInc/a2
// RUN: cp %S/Inputs/compilations.cpp %T/CompilationInc/a3

View File

@ -13,7 +13,7 @@
// This test uses a compilation database
// RUN: sed -e 's#$(path)#%/T/CompilationNotInc#g' %S/Inputs/compile_commands.json > %T/CompilationNotInc/compile_commands.json
// Check that no files are tranformed when -p is specified but not -include.
// Check that no files are transformed when -p is specified but not -include.
// RUN: cp %S/Inputs/compilations.cpp %T/CompilationNotInc/a1
// RUN: cp %S/Inputs/compilations.cpp %T/CompilationNotInc/a2
// RUN: cp %S/Inputs/compilations.cpp %T/CompilationNotInc/a3

View File

@ -13,7 +13,7 @@
// This test uses a compilation database
// RUN: sed -e 's#$(path)#%/T/DetectFromPath#g' %S/Inputs/compile_commands.json > %T/DetectFromPath/compile_commands.json
// Check that files are tranformed when -p is provided and files are specified.
// Check that files are transformed when -p is provided and files are specified.
// RUN: cp %S/Inputs/compilations.cpp %T/DetectFromPath/a1
// RUN: cp %S/Inputs/compilations.cpp %T/DetectFromPath/a2
// RUN: cp %S/Inputs/compilations.cpp %T/DetectFromPath/a3