Author: c8ef Date: 2024-08-31T19:12:57-07:00 New Revision: 4f4bd41f7098af51c3ba2e62cc635e3c45c294d4
URL: https://github.com/llvm/llvm-project/commit/4f4bd41f7098af51c3ba2e62cc635e3c45c294d4 DIFF: https://github.com/llvm/llvm-project/commit/4f4bd41f7098af51c3ba2e62cc635e3c45c294d4.diff LOG: [NFC] Fix typos (#106817) Fixes #106761. Added: Modified: clang/lib/Tooling/Refactoring/AtomicChange.cpp clang/tools/clang-format/ClangFormat.cpp clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py llvm/examples/ExceptionDemo/ExceptionDemo.cpp Removed: ################################################################################ diff --git a/clang/lib/Tooling/Refactoring/AtomicChange.cpp b/clang/lib/Tooling/Refactoring/AtomicChange.cpp index dfc98355c6642b..5bafe43aa92d6f 100644 --- a/clang/lib/Tooling/Refactoring/AtomicChange.cpp +++ b/clang/lib/Tooling/Refactoring/AtomicChange.cpp @@ -104,9 +104,9 @@ bool violatesColumnLimit(llvm::StringRef Code, unsigned ColumnLimit, } std::vector<Range> -getRangesForFormating(llvm::StringRef Code, unsigned ColumnLimit, - ApplyChangesSpec::FormatOption Format, - const clang::tooling::Replacements &Replaces) { +getRangesForFormatting(llvm::StringRef Code, unsigned ColumnLimit, + ApplyChangesSpec::FormatOption Format, + const clang::tooling::Replacements &Replaces) { // kNone suppresses formatting entirely. if (Format == ApplyChangesSpec::kNone) return {}; @@ -352,7 +352,7 @@ applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, AllReplaces = AllReplaces.merge(HeaderSortingReplacements); - std::vector<Range> FormatRanges = getRangesForFormating( + std::vector<Range> FormatRanges = getRangesForFormatting( *ChangedCode, Spec.Style.ColumnLimit, Spec.Format, AllReplaces); if (!FormatRanges.empty()) { Replacements FormatReplacements = diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp index 54b1dacbbe854a..6aed46328f3469 100644 --- a/clang/tools/clang-format/ClangFormat.cpp +++ b/clang/tools/clang-format/ClangFormat.cpp @@ -703,7 +703,7 @@ int main(int argc, const char **argv) { FileNames.push_back(Line); LineNo++; } - errs() << "Clang-formating " << LineNo << " files\n"; + errs() << "Clang-formatting " << LineNo << " files\n"; } if (FileNames.empty()) diff --git a/clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py b/clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py index 1675be3dc963d5..03f0da4ac6de30 100644 --- a/clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py +++ b/clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py @@ -121,7 +121,7 @@ def test_append_to_existing_cdb(self): self.assertEqual(5, self.count_entries(result)) -class ResultFormatingTest(unittest.TestCase): +class ResultFormattingTest(unittest.TestCase): @staticmethod def run_intercept(tmpdir, command): result = os.path.join(tmpdir, "cdb.json") diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp index 27acb9a155ecd8..58367a2319981d 100644 --- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp @@ -879,7 +879,6 @@ void generateStringPrint(llvm::LLVMContext &context, builder.CreateCall(printFunct, cast); } - /// Generates code to print given runtime integer according to constant /// string format, and a given print function. /// @param context llvm context @@ -887,7 +886,7 @@ void generateStringPrint(llvm::LLVMContext &context, /// @param builder builder instance /// @param printFunct function used to "print" integer /// @param toPrint string to print -/// @param format printf like formating string for print +/// @param format printf like formatting string for print /// @param useGlobal A value of true (default) indicates a GlobalValue is /// generated, and is used to hold the constant string. A value of /// false indicates that the constant string will be stored on the _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits