Commit 0621df11 authored by patrick pereira's avatar patrick pereira 🏃
Browse files

Solve typos

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D3872
parent d042d4f9
......@@ -124,7 +124,7 @@ QStringList Parameters::commandLine(QString& infoMessage) const
const QString mocMessage = i18n(
"It seems that this project uses Qt library. For correctly work of cppcheck "
"the value for define Q_MOC_OUTPUT_REVISION must be set. Unfortunatly, the plugin is unable "
"the value for define Q_MOC_OUTPUT_REVISION must be set. Unfortunately, the plugin is unable "
"to find this value automatically - you should set it manually by adding "
"'-DQ_MOC_OUTPUT_REVISION=XX' to extra parameters. The 'XX' value can be found in any project's "
"moc-generated file or in the <QtCore/qobjectdefs.h> header file.");
......
......@@ -1177,7 +1177,7 @@ void MIDebugSession::programNoApp(const QString& msg)
if (m_tty){
m_tty->readRemaining();
// Tty is no longer usable, delete it. Without this, QSocketNotifier
// will continiously bomd STTY with signals, so we need to either disable
// will continuously bomd STTY with signals, so we need to either disable
// QSocketNotifier, or delete STTY. The latter is simpler, since we can't
// reuse it for future debug sessions anyway.
m_tty.reset(nullptr);
......@@ -1249,7 +1249,7 @@ void MIDebugSession::handleNoInferior(const QString& msg)
if (m_tty){
m_tty->readRemaining();
// Tty is no longer usable, delete it. Without this, QSocketNotifier
// will continiously bomd STTY with signals, so we need to either disable
// will continuously bomd STTY with signals, so we need to either disable
// QSocketNotifier, or delete STTY. The latter is simpler, since we can't
// reuse it for future debug sessions anyway.
m_tty.reset(nullptr);
......
......@@ -43,7 +43,7 @@ public:
~MIVariable();
/* FIXME: should eventually remove, so that existance of
/* FIXME: should eventually remove, so that existence of
varobjs is fully encapsulalated inside GdbVariable. */
const QString& varobj() const;
void handleUpdate(const MI::Value& var);
......
......@@ -56,7 +56,7 @@ public:
~DebuggerConsoleView();
/**
* Whether show a button allowing user to interrput debugger execution.
* Whether show a button allowing user to interrupt debugger execution.
*/
void setShowInterrupt(bool enable);
......
......@@ -43,7 +43,7 @@ TODO:
- Debugging optimized binaries
- Debugged application somtimes not killed.
- Debugged application sometimes not killed.
- Fix moving breakpoints on editing files
......
......@@ -69,7 +69,7 @@ void LldbFrameStackModel::fetchThreads()
// TODO: preliminary test shows there might be a bug in lldb-mi
// that's causing std::logic_error when executing -thread-info with
// more than one threads. Find a workaround for this (and report bug
// if it truely is).
// if it truly is).
session()->addCommand(ThreadInfo, "", this, &LldbFrameStackModel::handleThreadInfo);
}
......
......@@ -179,7 +179,7 @@ QString LldbCommand::cmdToSend()
}
break;
}
// find the postion to insert '-f'
// find the position to insert '-f'
case BreakInsert: {
if (!overrideCmd.isEmpty()) {
// already done
......
......@@ -1268,7 +1268,7 @@ const string* ASBeautifier::findOperator(const string &line, int i,
assert(isCharPotentialOperator(line[i]));
// find the operator in the vector
// the vector contains the LONGEST operators first
// must loop thru the entire vector
// must loop through the entire vector
size_t maxOperators = possibleOperators->size();
for (size_t p = 0; p < maxOperators; p++)
{
......
......@@ -582,7 +582,7 @@ string ASFormatter::nextLine()
isInHorstmannRunIn = false;
}
processPreprocessor();
// need to fall thru here to reset the variables
// need to fall through here to reset the variables
}
/* not in preprocessor ... */
......@@ -1102,7 +1102,7 @@ string ASFormatter::nextLine()
else if ((newHeader = findHeader(preCommandHeaders)) != NULL)
{
foundPreCommandHeader = true;
// fall thru here for a 'const' that is not a precommand header
// fall through here for a 'const' that is not a precommand header
}
else if ((newHeader = findHeader(castOperators)) != NULL)
{
......
......@@ -160,7 +160,7 @@ void TestAstyle::varTypeAssistant()
{
// think this:
// asdf = 1;
// and you execute the assitant to get:
// and you execute the assistant to get:
// int asdf = 1;
// test1: already indented
......
......@@ -405,7 +405,7 @@ void TestBuddies::testSplitViewBuddies()
// check that it only contains pNewView
QVERIFY(pContainer->count() == 1 && pContainer->hasWidget(pNewView->widget()));
// now open the correponding definition file, classA.cpp
// now open the corresponding definition file, classA.cpp
IDocument *pClassAImplem = m_documentController->openDocument(QUrl::fromLocalFile(dirA.filePath("classA.cpp")));
QVERIFY(pClassAImplem);
pMainWindow->activeView()->setObjectName("classA.cpp");
......
......@@ -227,7 +227,7 @@ void TestDUChain::testElaboratedType_data()
void TestDUChain::testInclude()
{
TestFile header("int foo() { return 42; }\n", "h");
// NOTE: header is _not_ explictly being parsed, instead the impl job does that
// NOTE: header is _not_ explicitly being parsed, instead the impl job does that
TestFile impl("#include \"" + header.url().byteArray() + "\"\n"
"int main() { return foo(); }", "cpp", &header);
......
......@@ -59,7 +59,7 @@ namespace ClangUtils
/**
* Given a cursor representing a function, returns a vector containing the string
* representations of the default arguments of the function which are defined at
* the occurence of the cursor. Note that this is not necessarily all of the default
* the occurrence of the cursor. Note that this is not necessarily all of the default
* arguments of the function.
*
* @param cursor The cursor to examine
......
......@@ -139,7 +139,7 @@ void DeclarationBuilder::declareFunction(QmlJS::AST::Node* node,
}
openType(func);
// Parameters, if any (a function must always have an interal function context,
// Parameters, if any (a function must always have an internal function context,
// so always open a context here even if there are no parameters)
DUContext* parametersContext = openContext(
node + 1, // Don't call setContextOnNode on node, only the body context can be associated with node
......
......@@ -56,7 +56,7 @@ class ViewerContext;
namespace Internal { class ImportDependenciesPrivate; }
class ImportDependencies;
// match strenght wrt to the selectors of a ViewerContext
// match strength wrt to the selectors of a ViewerContext
// this is valid only within a ViewerContext
class QMLJS_EXPORT ImportMatchStrength
{
......
......@@ -272,7 +272,7 @@ QStringList CMakeBuilder::supportedGenerators()
generatorNames << "Ninja";
#ifdef Q_OS_WIN
// Visual Studio solution is the standard generator under windows, but we dont want to use
// Visual Studio solution is the standard generator under windows, but we don't want to use
// the VS IDE, so we need nmake makefiles
generatorNames << "NMake Makefiles";
#endif
......
......@@ -123,7 +123,7 @@ void QMakeBuilderPreferences::apply()
} else {
// invalid data: message box
KMessageBox::error(nullptr, errormsg, "Data is invalid!");
// FIXME dialog behaves like if save really happend (dialog closes if user click ok) even if changed signal is
// FIXME dialog behaves like if save really happened (dialog closes if user click ok) even if changed signal is
// emitted
}
}
......
......@@ -295,7 +295,7 @@ void CMakePreferences::createBuildDir()
// NOTE: (on removing the trailing slashes)
// Generally, we have no clue about how shall a trailing slash look in the current system.
// Moreover, the slash may be a part of the filename.
// It may be '/' or '\', so maybe should we rely on CMake::allBuildDirs() for returning well-formed pathes?
// It may be '/' or '\', so maybe should we rely on CMake::allBuildDirs() for returning well-formed paths?
QStringList used = CMake::allBuildDirs( m_project );
bdCreator.setAlreadyUsed(used);
bdCreator.setCMakeBinary(Path(CMake::findExecutable()));
......
......@@ -520,7 +520,7 @@ void CMakeProjectVisitorTest::testRun_data()
results.clear();
results << StringPair("result", "");
QTest::newRow("empty set with scope") <<
"set(result ${nonexistant} PARENT_SCOPE)\n"
"set(result ${nonexistent} PARENT_SCOPE)\n"
<< cacheValues << results;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment