Skip to content

Commit 8a479aa

Browse files
authored
Fix typos in repo
1 parent 58be79c commit 8a479aa

15 files changed

+45
-45
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ endif()
440440

441441
# Generate docs for CppInterOp
442442
option(CPPINTEROP_INCLUDE_DOCS "Generate build targets for the CppInterOp docs.")
443-
option(CPPINTEROP_ENABLE_DOXYGEN "Use doxygen to generate CppInterOp interal API documentation.")
444-
option(CPPINTEROP_ENABLE_SPHINX "Use sphinx to generage CppInterOp user documentation")
443+
option(CPPINTEROP_ENABLE_DOXYGEN "Use doxygen to generate CppInterOp internal API documentation.")
444+
option(CPPINTEROP_ENABLE_SPHINX "Use sphinx to generate CppInterOp user documentation")
445445

446446

447447
if(MSVC)

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ projects such as CppInterOp. We have our documentation in the repository which i
4242
rendered in the [CppInterOp.readthedocs](https://cppinterop.readthedocs.io/en/latest/) website.
4343
Documentation modifications happen by proposing a pull request.
4444

45-
## Creating a successfull pull request
45+
## Creating a successful pull request
4646

4747
To propose a code modification we use the pull requests. Pull requests which
4848
review quickly and successfully share several common traits:
@@ -71,4 +71,4 @@ review quickly and successfully share several common traits:
7171
### Developer Documentation
7272

7373
We have documented several useful hints that usually help when addressing issues
74-
as they come during developement time in our [developer documentation](https://cppinterop.readthedocs.io/en/latest/InstallationAndUsage.html).
74+
as they come during development time in our [developer documentation](https://cppinterop.readthedocs.io/en/latest/InstallationAndUsage.html).

cmake/modules/GoogleTest.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ else()
7676
endif()
7777

7878
# Use gmock_main instead of gtest_main because it initializes gtest as well.
79-
# Note: The libraries are listed in reverse order of their dependancies.
79+
# Note: The libraries are listed in reverse order of their dependencies.
8080
foreach(lib gtest gtest_main gmock gmock_main)
8181
add_library(${lib} IMPORTED STATIC GLOBAL)
8282
set_target_properties(${lib} PROPERTIES

docs/doxygen.cfg.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ CREATE_SUBDIRS = NO
7070
# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
7171
# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
7272
# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
73-
# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
73+
# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak,
7474
# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
7575

7676
OUTPUT_LANGUAGE = English
@@ -1185,7 +1185,7 @@ EXT_LINKS_IN_WINDOW = NO
11851185

11861186
FORMULA_FONTSIZE = 10
11871187

1188-
# Use the FORMULA_TRANPARENT tag to determine whether or not the images
1188+
# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
11891189
# generated for formulas are transparent PNGs. Transparent PNGs are not
11901190
# supported properly for IE 6.0, but are supported on all modern browsers.
11911191
#

docs/doxygen.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ HR { height: 1px;
313313

314314
/*
315315
* LLVM Modifications.
316-
* Note: Everything above here is generated with "doxygen -w htlm" command. See
316+
* Note: Everything above here is generated with "doxygen -w html" command. See
317317
* "doxygen --help" for details. What follows are CSS overrides for LLVM
318318
* specific formatting. We want to keep the above so it can be replaced with
319319
* subsequent doxygen upgrades.

include/clang/Interpreter/CppInterOp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ namespace Cpp {
730730
///
731731
///\param[in] candidates - vector of overloads that come under the
732732
/// parent scope and have the same name
733-
///\param[in] explicit_types - set of expicitly instantiated template types
733+
///\param[in] explicit_types - set of explicitly instantiated template types
734734
///\param[in] arg_types - set of argument types
735735
///\returns Instantiated function pointer
736736
CPPINTEROP_API TCppFunction_t
@@ -791,7 +791,7 @@ namespace Cpp {
791791
/// Append all Code completion suggestions to Results.
792792
///\param[out] Results - CC suggestions for code fragment. Suggestions are
793793
/// appended.
794-
///\param[in] code - code fragmet to complete
794+
///\param[in] code - code fragment to complete
795795
///\param[in] complete_line - position (line) in code for suggestion
796796
///\param[in] complete_column - position (column) in code for suggestion
797797
CPPINTEROP_API void CodeComplete(std::vector<std::string>& Results,

lib/Interpreter/Compatibility.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ inline std::string MakeResourceDir(llvm::StringRef Dir) {
481481
return std::string(P.str());
482482
}
483483

484-
// Clang >= 16 (=16 with Value patch) change castAs to converTo
484+
// Clang >= 16 (=16 with Value patch) change castAs to convertTo
485485
#ifdef CPPINTEROP_USE_CLING
486486
template <typename T> inline T convertTo(cling::Value V) {
487487
return V.castAs<T>();

lib/Interpreter/CppInterOp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ namespace Cpp {
14211421
// not C. That means BaseCXXRD derives from C. Offset needs to be
14221422
// calculated for Derived class
14231423

1424-
// Depth first Search is performed to the class that declears FD from
1424+
// Depth first Search is performed to the class that declares FD from
14251425
// the base class
14261426
std::vector<CXXRecordDecl*> stack;
14271427
std::map<CXXRecordDecl*, CXXRecordDecl*> direction;
@@ -3646,7 +3646,7 @@ namespace Cpp {
36463646
m_DupFD = dup(FD);
36473647

36483648
// Flush now or can drop the buffer when dup2 is called with Fd later.
3649-
// This seems only neccessary when piping stdout or stderr, but do it
3649+
// This seems only necessary when piping stdout or stderr, but do it
36503650
// for ttys to avoid over complicated code for minimal benefit.
36513651
::fflush(FD == STDOUT_FILENO ? stdout : stderr);
36523652
if (dup2(fileno(m_TempFile.get()), FD) < 0)

lib/Interpreter/CppInterOpInterpreter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class Interpreter {
345345
const_cast<const Interpreter*>(this)->getDynamicLibraryManager());
346346
}
347347

348-
///\brief Adds multiple include paths separated by a delimter.
348+
///\brief Adds multiple include paths separated by a delimiter.
349349
///
350350
///\param[in] PathsStr - Path(s)
351351
///\param[in] Delim - Delimiter to separate paths or NULL if a single path

lib/Interpreter/DynamicLibraryManager.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ namespace Cpp {
5151
};
5252

5353
// Behaviour is to not add paths that don't exist...In an interpreted env
54-
// does this make sense? Path could pop into existance at any time.
54+
// does this make sense? Path could pop into existence at any time.
5555
for (const char* Var : kSysLibraryEnv) {
5656
if (const char* Env = GetEnv(Var)) {
5757
SmallVector<StringRef, 10> CurPaths;
58-
SplitPaths(Env, CurPaths, utils::kPruneNonExistant, Cpp::utils::platform::kEnvDelim);
58+
SplitPaths(Env, CurPaths, utils::kPruneNonExistent, Cpp::utils::platform::kEnvDelim);
5959
for (const auto& Path : CurPaths)
6060
addSearchPath(Path);
6161
}
@@ -86,7 +86,7 @@ namespace Cpp {
8686
StringRef libLoader) {
8787

8888
// Handle substitutions (MacOS):
89-
// @rpath - This function does not substitute @rpath, becouse
89+
// @rpath - This function does not substitute @rpath, because
9090
// this variable is already handled by lookupLibrary where
9191
// @rpath is replaced with all paths from RPATH one by one.
9292
// @executable_path - Main program path.

lib/Interpreter/DynamicLibraryManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class DynamicLibraryManager {
190190
/// Find the first not-yet-loaded shared object that contains the symbol
191191
///
192192
///\param[in] mangledName - the mangled name to look for.
193-
///\param[in] searchSystem - whether to decend into system libraries.
193+
///\param[in] searchSystem - whether to descend into system libraries.
194194
///
195195
///\returns the library name if found, and empty string otherwise.
196196
///

lib/Interpreter/DynamicLibraryManagerSymbol.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class LibraryPaths {
256256
static inline mode_t cached_lstat(const char *path) {
257257
static StringMap<mode_t> lstat_cache;
258258

259-
// If already cached - retun cached result
259+
// If already cached - return cached result
260260
auto it = lstat_cache.find(path);
261261
if (it != lstat_cache.end())
262262
return it->second;
@@ -272,7 +272,7 @@ static inline mode_t cached_lstat(const char *path) {
272272
static inline StringRef cached_readlink(const char* pathname) {
273273
static StringMap<std::string> readlink_cache;
274274

275-
// If already cached - retun cached result
275+
// If already cached - return cached result
276276
auto it = readlink_cache.find(pathname);
277277
if (it != readlink_cache.end())
278278
return StringRef(it->second);
@@ -304,7 +304,7 @@ std::string cached_realpath(StringRef path, StringRef base_path = "",
304304
return "";
305305
}
306306

307-
// If already cached - retun cached result
307+
// If already cached - return cached result
308308
static StringMap<std::pair<std::string,int>> cache;
309309
bool relative_path = llvm::sys::path::is_relative(path);
310310
if (!relative_path) {
@@ -606,10 +606,10 @@ namespace Cpp {
606606
Deps.push_back(Data + Dyn.d_un.d_val);
607607
break;
608608
case ELF::DT_RPATH:
609-
SplitPaths(Data + Dyn.d_un.d_val, RPath, utils::kAllowNonExistant, Cpp::utils::platform::kEnvDelim, false);
609+
SplitPaths(Data + Dyn.d_un.d_val, RPath, utils::kAllowNonExistent, Cpp::utils::platform::kEnvDelim, false);
610610
break;
611611
case ELF::DT_RUNPATH:
612-
SplitPaths(Data + Dyn.d_un.d_val, RunPath, utils::kAllowNonExistant, Cpp::utils::platform::kEnvDelim, false);
612+
SplitPaths(Data + Dyn.d_un.d_val, RunPath, utils::kAllowNonExistent, Cpp::utils::platform::kEnvDelim, false);
613613
break;
614614
case ELF::DT_FLAGS_1:
615615
// Check if this is not a pie executable.
@@ -757,7 +757,7 @@ namespace Cpp {
757757
}
758758
else if (Command.C.cmd == MachO::LC_RPATH) {
759759
MachO::rpath_command rpathCmd = Obj->getRpathCommand(Command);
760-
SplitPaths(Command.Ptr + rpathCmd.path, RPath, utils::kAllowNonExistant, Cpp::utils::platform::kEnvDelim, false);
760+
SplitPaths(Command.Ptr + rpathCmd.path, RPath, utils::kAllowNonExistent, Cpp::utils::platform::kEnvDelim, false);
761761
}
762762
}
763763
} else if (BinObjF->isCOFF()) {

lib/Interpreter/Paths.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ void CopyIncludePaths(const clang::HeaderSearchOptions& Opts,
231231
incpaths.push_back("-v");
232232
}
233233

234-
void LogNonExistantDirectory(llvm::StringRef Path) {
235-
#define DEBUG_TYPE "LogNonExistantDirectory"
234+
void LogNonExistentDirectory(llvm::StringRef Path) {
235+
#define DEBUG_TYPE "LogNonExistentDirectory"
236236
LLVM_DEBUG(dbgs() << " ignoring nonexistent directory \"" << Path << "\"\n");
237237
#undef DEBUG_TYPE
238238
}
@@ -276,27 +276,27 @@ bool SplitPaths(llvm::StringRef PathStr,
276276
AllExisted = AllExisted && Exists;
277277

278278
if (!Exists) {
279-
if (Mode == kFailNonExistant) {
279+
if (Mode == kFailNonExistent) {
280280
if (Verbose) {
281-
// Exiting early, but still log all non-existant paths that we have
282-
LogNonExistantDirectory(Split.first);
281+
// Exiting early, but still log all non-existent paths that we have
282+
LogNonExistentDirectory(Split.first);
283283
while (!Split.second.empty()) {
284284
Split = PathStr.split(Delim);
285285
if (llvm::sys::fs::is_directory(Split.first)) {
286286
LLVM_DEBUG(dbgs() << " ignoring directory that exists \""
287287
<< Split.first << "\"\n");
288288
} else
289-
LogNonExistantDirectory(Split.first);
289+
LogNonExistentDirectory(Split.first);
290290
Split = Split.second.split(Delim);
291291
}
292292
if (!llvm::sys::fs::is_directory(Split.first))
293-
LogNonExistantDirectory(Split.first);
293+
LogNonExistentDirectory(Split.first);
294294
}
295295
return false;
296-
} else if (Mode == kAllowNonExistant)
296+
} else if (Mode == kAllowNonExistent)
297297
Paths.push_back(Split.first);
298298
else if (Verbose)
299-
LogNonExistantDirectory(Split.first);
299+
LogNonExistentDirectory(Split.first);
300300
} else
301301
Paths.push_back(Split.first);
302302
}
@@ -311,10 +311,10 @@ bool SplitPaths(llvm::StringRef PathStr,
311311
if (!PathStr.empty()) {
312312
if (!llvm::sys::fs::is_directory(PathStr)) {
313313
AllExisted = false;
314-
if (Mode == kAllowNonExistant)
314+
if (Mode == kAllowNonExistent)
315315
Paths.push_back(PathStr);
316316
else if (Verbose)
317-
LogNonExistantDirectory(PathStr);
317+
LogNonExistentDirectory(PathStr);
318318
} else
319319
Paths.push_back(PathStr);
320320
}
@@ -331,7 +331,7 @@ void AddIncludePaths(llvm::StringRef PathStr,
331331

332332
llvm::SmallVector<llvm::StringRef, 10> Paths;
333333
if (Delim && *Delim)
334-
SplitPaths(PathStr, Paths, kAllowNonExistant, Delim, HOpts.Verbose);
334+
SplitPaths(PathStr, Paths, kAllowNonExistent, Delim, HOpts.Verbose);
335335
else
336336
Paths.push_back(PathStr);
337337

lib/Interpreter/Paths.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,30 @@ void DLClose(void* Lib, std::string* Err = nullptr);
6060
} // namespace platform
6161

6262
enum SplitMode {
63-
kPruneNonExistant, ///< Don't add non-existant paths into output
64-
kFailNonExistant, ///< Fail on any non-existant paths
65-
kAllowNonExistant ///< Add all paths whether they exist or not
63+
kPruneNonExistent, ///< Don't add non-existent paths into output
64+
kFailNonExistent, ///< Fail on any non-existent paths
65+
kAllowNonExistent ///< Add all paths whether they exist or not
6666
};
6767

68-
///\brief Collect the constituant paths from a PATH string.
68+
///\brief Collect the constituent paths from a PATH string.
6969
/// /bin:/usr/bin:/usr/local/bin -> {/bin, /usr/bin, /usr/local/bin}
7070
///
7171
/// All paths returned existed at the time of the call
7272
/// \param [in] PathStr - The PATH string to be split
7373
/// \param [out] Paths - All the paths in the string that exist
7474
/// \param [in] Mode - If any path doesn't exist stop and return false
75-
/// \param [in] Delim - The delimeter to use
75+
/// \param [in] Delim - The delimiter to use
7676
/// \param [in] Verbose - Whether to print out details as 'clang -v' would
7777
///
7878
/// \return true if all paths existed, otherwise false
7979
///
8080
bool SplitPaths(llvm::StringRef PathStr,
8181
llvm::SmallVectorImpl<llvm::StringRef>& Paths,
82-
SplitMode Mode = kPruneNonExistant,
82+
SplitMode Mode = kPruneNonExistent,
8383
llvm::StringRef Delim = Cpp::utils::platform::kEnvDelim,
8484
bool Verbose = false);
8585

86-
///\brief Adds multiple include paths separated by a delimter into the
86+
///\brief Adds multiple include paths separated by a delimiter into the
8787
/// given HeaderSearchOptions. This adds the paths but does no further
8888
/// processing. See Interpreter::AddIncludePaths or CIFactory::createCI
8989
/// for examples of what needs to be done once the paths have been added.
@@ -98,7 +98,7 @@ void AddIncludePaths(llvm::StringRef PathStr, clang::HeaderSearchOptions& HOpts,
9898
///\brief Write to cling::errs that directory does not exist in a format
9999
/// matching what 'clang -v' would do
100100
///
101-
void LogNonExistantDirectory(llvm::StringRef Path);
101+
void LogNonExistentDirectory(llvm::StringRef Path);
102102

103103
///\brief Copies the current include paths into the HeaderSearchOptions.
104104
///

unittests/CppInterOp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
if (EMSCRIPTEN)
22
# Omitting CUDATest.cpp since Emscripten build currently has no GPU support
33
# For Emscripten builds linking to gtest_main will not suffice for gtest to run
4-
# the tests and an explictly main.cpp is needed
4+
# the tests and an explicitly main.cpp is needed
55
set(EXTRA_TEST_SOURCE_FILES main.cpp)
66
else()
77
# Do not need main.cpp for native builds, but we do have GPU support for native builds

0 commit comments

Comments
 (0)