diff options
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 | ||||
| -rw-r--r-- | clang/tools/clang-format/clang-format.el | 2 | ||||
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 4 | ||||
| -rw-r--r-- | clang/tools/libclang/CXCursor.cpp | 6 | ||||
| -rw-r--r-- | clang/tools/libclang/CXCursor.h | 4 | ||||
| -rw-r--r-- | clang/tools/scan-build-py/README.md | 6 | ||||
| -rw-r--r-- | clang/tools/scan-build-py/libscanbuild/analyze.py | 4 | ||||
| -rw-r--r-- | clang/tools/scan-build-py/libscanbuild/arguments.py | 2 | ||||
| -rwxr-xr-x | clang/tools/scan-build/bin/scan-build | 4 | ||||
| -rw-r--r-- | clang/tools/scan-build/man/scan-build.1 | 2 | ||||
| -rw-r--r-- | clang/tools/scan-view/share/startfile.py | 6 |
11 files changed, 21 insertions, 21 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index 31bdf8a6fd3..a426353268f 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -662,7 +662,7 @@ static void ValidateCommentXML(const char *Str, const char *CommentSchemaFile) { printf(" CommentXMLValid"); else if (status > 0) { xmlErrorPtr Error = xmlGetLastError(); - printf(" CommentXMLInvalid [not vaild XML: %s]", Error->message); + printf(" CommentXMLInvalid [not valid XML: %s]", Error->message); } else printf(" libXMLError"); diff --git a/clang/tools/clang-format/clang-format.el b/clang/tools/clang-format/clang-format.el index 6c626e0b83d..4f11daf15fa 100644 --- a/clang/tools/clang-format/clang-format.el +++ b/clang/tools/clang-format/clang-format.el @@ -153,7 +153,7 @@ uses the function `buffer-file-name'." nil nil clang-format-executable nil `(,temp-buffer ,temp-file) nil `("-output-replacements-xml" - ;; Gaurd against a nil assume-file-name. + ;; Guard against a nil assume-file-name. ;; If the clang-format option -assume-filename ;; is given a blank string it will crash as per ;; the following bug report diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index d7f27d196cc..74305718296 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -2593,7 +2593,7 @@ void EnqueueVisitor::VisitMemberExpr(const MemberExpr *M) { return; // Ignore base anonymous struct/union fields, otherwise they will shadow the - // real field that that we are interested in. + // real field that we are interested in. if (auto *SubME = dyn_cast<MemberExpr>(M->getBase())) { if (auto *FD = dyn_cast_or_null<FieldDecl>(SubME->getMemberDecl())) { if (FD->isAnonymousStructOrUnion()) { @@ -7695,7 +7695,7 @@ CXTLSKind clang_getCursorTLSKind(CXCursor cursor) { } /// \brief If the given cursor is the "templated" declaration - /// descibing a class or function template, return the class or + /// describing a class or function template, return the class or /// function template. static const Decl *maybeGetTemplateCursor(const Decl *D) { if (!D) diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp index fb61249a778..8fdb921d63f 100644 --- a/clang/tools/libclang/CXCursor.cpp +++ b/clang/tools/libclang/CXCursor.cpp @@ -1469,17 +1469,17 @@ void clang_getOverriddenCursors(CXCursor cursor, assert(cxcursor::getCursorTU(backRefCursor) == TU); Vec->push_back(backRefCursor); - // Get the overriden cursors. + // Get the overridden cursors. cxcursor::getOverriddenCursors(cursor, *Vec); - // Did we get any overriden cursors? If not, return Vec to the pool + // Did we get any overridden cursors? If not, return Vec to the pool // of available cursor vectors. if (Vec->size() == 1) { pool.AvailableCursors.push_back(Vec); return; } - // Now tell the caller about the overriden cursors. + // Now tell the caller about the overridden cursors. assert(Vec->size() > 1); *overridden = &((*Vec)[1]); *num_overridden = Vec->size() - 1; diff --git a/clang/tools/libclang/CXCursor.h b/clang/tools/libclang/CXCursor.h index 083b86934d1..3407f3b5ff3 100644 --- a/clang/tools/libclang/CXCursor.h +++ b/clang/tools/libclang/CXCursor.h @@ -251,11 +251,11 @@ CXTranslationUnit getCursorTU(CXCursor Cursor); void getOverriddenCursors(CXCursor cursor, SmallVectorImpl<CXCursor> &overridden); -/// \brief Create an opaque pool used for fast generation of overriden +/// \brief Create an opaque pool used for fast generation of overridden /// CXCursor arrays. void *createOverridenCXCursorsPool(); -/// \brief Dispose of the overriden CXCursors pool. +/// \brief Dispose of the overridden CXCursors pool. void disposeOverridenCXCursorsPool(void *pool); /// \brief Returns a index/location pair for a selector identifier if the cursor diff --git a/clang/tools/scan-build-py/README.md b/clang/tools/scan-build-py/README.md index 1b6fc488fa2..720bde1cf3b 100644 --- a/clang/tools/scan-build-py/README.md +++ b/clang/tools/scan-build-py/README.md @@ -84,11 +84,11 @@ tool has three distinct model to run the analyzer: This is the default behaviour, can be enforced with `--override-compiler` flag. -2. Use special library to intercept compiler calls durring the build process. +2. Use special library to intercept compiler calls during the build process. The analyzer run against each modules after the build finished. Use `--intercept-first` flag to get this model. -3. Use compiler wrappers to intercept compiler calls durring the build process. +3. Use compiler wrappers to intercept compiler calls during the build process. The analyzer run against each modules after the build finished. Use `--intercept-first` and `--override-compiler` flags together to get this model. @@ -105,7 +105,7 @@ process removes removes intermediate modules (generated sources) the analyzer output still kept. The 2. and 3. generate the compilation database first, and filters out those -modules which are not exists. So, it's suitable for incremental analysis durring +modules which are not exists. So, it's suitable for incremental analysis during the development. The 2. mode is available only on FreeBSD and Linux. Where library preload diff --git a/clang/tools/scan-build-py/libscanbuild/analyze.py b/clang/tools/scan-build-py/libscanbuild/analyze.py index 3c93b114051..5a7cc20a517 100644 --- a/clang/tools/scan-build-py/libscanbuild/analyze.py +++ b/clang/tools/scan-build-py/libscanbuild/analyze.py @@ -94,7 +94,7 @@ def need_analyzer(args): When static analyzer run against project configure step, it should be silent and no need to run the analyzer or generate report. - To run `scan-build` against the configure step might be neccessary, + To run `scan-build` against the configure step might be necessary, when compiler wrappers are used. That's the moment when build setup check the compiler and capture the location for the build process. """ @@ -437,7 +437,7 @@ def run(opts): of the compilation database. This complex task is decomposed into smaller methods which are calling - each other in chain. If the analyzis is not possibe the given method + each other in chain. If the analyzis is not possible the given method just return and break the chain. The passed parameter is a python dictionary. Each method first check diff --git a/clang/tools/scan-build-py/libscanbuild/arguments.py b/clang/tools/scan-build-py/libscanbuild/arguments.py index 00679a45937..a5d0c6bda66 100644 --- a/clang/tools/scan-build-py/libscanbuild/arguments.py +++ b/clang/tools/scan-build-py/libscanbuild/arguments.py @@ -281,7 +281,7 @@ def create_analyze_parser(from_build_command): '-maxloop', metavar='<loop count>', type=int, - help="""Specifiy the number of times a block can be visited before + help="""Specify the number of times a block can be visited before giving up. Increase for more comprehensive coverage at a cost of speed.""") advanced.add_argument( diff --git a/clang/tools/scan-build/bin/scan-build b/clang/tools/scan-build/bin/scan-build index 49018ebf026..c50f900cc45 100755 --- a/clang/tools/scan-build/bin/scan-build +++ b/clang/tools/scan-build/bin/scan-build @@ -1013,7 +1013,7 @@ sub RunXcodebuild { } close(DETECT_XCODE); - # If --override-compiler is explicitely requested, resort to the old + # If --override-compiler is explicitly requested, resort to the old # behavior regardless of Xcode version. if ($Options{OverrideCompiler}) { $oldBehavior = 1; @@ -1246,7 +1246,7 @@ ADVANCED OPTIONS: -maxloop <loop count> - Specifiy the number of times a block can be visited before giving up. + Specify the number of times a block can be visited before giving up. Default is 4. Increase for more comprehensive coverage at a cost of speed. -internal-stats diff --git a/clang/tools/scan-build/man/scan-build.1 b/clang/tools/scan-build/man/scan-build.1 index 3d3a9f8efeb..cf7e7b15c35 100644 --- a/clang/tools/scan-build/man/scan-build.1 +++ b/clang/tools/scan-build/man/scan-build.1 @@ -116,7 +116,7 @@ model is used. Specifying uses a simpler, less powerful constraint model used by checker-0.160 and earlier. .It Fl maxloop Ar N -Specifiy the number of times a block can be visited before giving +Specify the number of times a block can be visited before giving up. Default is 4. Increase for more comprehensive coverage at a cost of speed. .It Fl no-failure-reports diff --git a/clang/tools/scan-view/share/startfile.py b/clang/tools/scan-view/share/startfile.py index 673935909f8..f58dbeeaf81 100644 --- a/clang/tools/scan-view/share/startfile.py +++ b/clang/tools/scan-view/share/startfile.py @@ -62,7 +62,7 @@ class Controller(BaseController): preexec_fn=setsid, startupinfo=startupinfo) # It is assumed that this kind of tools (gnome-open, kfmclient, - # exo-open, xdg-open and open for OSX) immediately exit after lauching + # exo-open, xdg-open and open for OSX) immediately exit after launching # the specific application returncode = pipe.wait() if hasattr(self, 'fixreturncode'): @@ -85,7 +85,7 @@ class Controller(BaseController): if sys.platform[:3] == 'win': class Start(BaseController): - '''Controller for the win32 start progam through os.startfile.''' + '''Controller for the win32 start program through os.startfile.''' def open(self, filename): try: @@ -201,6 +201,6 @@ else: def open(filename): - '''Open a file or an URL in the registered default application.''' + '''Open a file or a URL in the registered default application.''' return _open(filename) |

