diff options
author | Kazuaki Ishizaki <ishizaki@jp.ibm.com> | 2020-04-05 15:28:11 +0900 |
---|---|---|
committer | Kazuaki Ishizaki <ishizaki@jp.ibm.com> | 2020-04-05 15:28:40 +0900 |
commit | dd5571d51a0f6164cb66d02c8cd0e7032e42abe4 (patch) | |
tree | 6e03382aa6f84bb299c249acdec3568841e3ccdb /clang-tools-extra/clang-include-fixer | |
parent | 86b97f00a284493aabfae62aa14064121c296326 (diff) | |
download | llvm-dd5571d51a0f6164cb66d02c8cd0e7032e42abe4.tar.gz |
[clang-tools-extra] NFC: Fix trivial typo in documents and comments
Differential Revision: https://reviews.llvm.org/D77458
Diffstat (limited to 'clang-tools-extra/clang-include-fixer')
6 files changed, 6 insertions, 6 deletions
diff --git a/clang-tools-extra/clang-include-fixer/IncludeFixer.h b/clang-tools-extra/clang-include-fixer/IncludeFixer.h index 1ec1c50275a4..c941509fe6e2 100644 --- a/clang-tools-extra/clang-include-fixer/IncludeFixer.h +++ b/clang-tools-extra/clang-include-fixer/IncludeFixer.h @@ -62,7 +62,7 @@ private: }; /// Create replacements, which are generated by clang-format, for the -/// missing header and mising qualifiers insertions. The function uses the +/// missing header and missing qualifiers insertions. The function uses the /// first header for insertion. /// /// \param Code The source code. diff --git a/clang-tools-extra/clang-include-fixer/IncludeFixerContext.h b/clang-tools-extra/clang-include-fixer/IncludeFixerContext.h index e55597f90ed5..e819d30b2915 100644 --- a/clang-tools-extra/clang-include-fixer/IncludeFixerContext.h +++ b/clang-tools-extra/clang-include-fixer/IncludeFixerContext.h @@ -37,7 +37,7 @@ public: /// The qualifiers of the scope in which SymbolIdentifier lookup /// occurs. It is represented as a sequence of names and scope resolution - /// operatiors ::, ending with a scope resolution operator (e.g. a::b::). + /// operators ::, ending with a scope resolution operator (e.g. a::b::). /// Empty if SymbolIdentifier is not in a specific scope. std::string ScopedQualifiers; diff --git a/clang-tools-extra/clang-include-fixer/SymbolIndexManager.cpp b/clang-tools-extra/clang-include-fixer/SymbolIndexManager.cpp index 7b827536e0ae..97015f2468e9 100644 --- a/clang-tools-extra/clang-include-fixer/SymbolIndexManager.cpp +++ b/clang-tools-extra/clang-include-fixer/SymbolIndexManager.cpp @@ -25,7 +25,7 @@ using find_all_symbols::SymbolAndSignals; // related to the given source file. static double similarityScore(llvm::StringRef FileName, llvm::StringRef Header) { - // Compute the maximum number of common path segements between Header and + // Compute the maximum number of common path segments between Header and // a suffix of FileName. // We do not do a full longest common substring computation, as Header // specifies the path we would directly #include, so we assume it is rooted diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp b/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp index a2a98a261c02..7d540d83037b 100644 --- a/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp +++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp @@ -128,7 +128,7 @@ void FindAllSymbols::registerMatchers(MatchFinder *MatchFinder) { auto HasNSOrTUCtxMatcher = hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); - // We need seperate rules for C record types and C++ record types since some + // We need separate rules for C record types and C++ record types since some // template related matchers are inapplicable on C record declarations. // // Matchers specific to C++ code. diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py b/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py index 02b100bd849b..8655af137bb2 100755 --- a/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py +++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py @@ -46,7 +46,7 @@ def find_compilation_database(path): def MergeSymbols(directory, args): - """Merge all symbol files (yaml) in a given directaory into a single file.""" + """Merge all symbol files (yaml) in a given directory into a single file.""" invocation = [args.binary, '-merge-dir='+directory, args.saving_path] subprocess.call(invocation) print 'Merge is finished. Saving results in ' + args.saving_path diff --git a/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.py b/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.py index e3a52f094f66..62bd07365a99 100644 --- a/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.py +++ b/clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.py @@ -146,7 +146,7 @@ def main(): help='clang-include-fixer input format.') parser.add_argument('-input', default='', help='String to initialize the database.') - # Don't throw exception when parsing unknown arguements to make the script + # Don't throw exception when parsing unknown arguments to make the script # work in neovim. # Neovim (at least v0.2.1) somehow mangles the sys.argv in a weird way: it # will pass additional arguments (e.g. "-c script_host.py") to sys.argv, |