Skip to content

Commit 4f4bd41

Browse files
authored
[NFC] Fix typos (#106817)
Fixes #106761.
1 parent 380fa87 commit 4f4bd41

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

clang/lib/Tooling/Refactoring/AtomicChange.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ bool violatesColumnLimit(llvm::StringRef Code, unsigned ColumnLimit,
104104
}
105105

106106
std::vector<Range>
107-
getRangesForFormating(llvm::StringRef Code, unsigned ColumnLimit,
108-
ApplyChangesSpec::FormatOption Format,
109-
const clang::tooling::Replacements &Replaces) {
107+
getRangesForFormatting(llvm::StringRef Code, unsigned ColumnLimit,
108+
ApplyChangesSpec::FormatOption Format,
109+
const clang::tooling::Replacements &Replaces) {
110110
// kNone suppresses formatting entirely.
111111
if (Format == ApplyChangesSpec::kNone)
112112
return {};
@@ -352,7 +352,7 @@ applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
352352

353353
AllReplaces = AllReplaces.merge(HeaderSortingReplacements);
354354

355-
std::vector<Range> FormatRanges = getRangesForFormating(
355+
std::vector<Range> FormatRanges = getRangesForFormatting(
356356
*ChangedCode, Spec.Style.ColumnLimit, Spec.Format, AllReplaces);
357357
if (!FormatRanges.empty()) {
358358
Replacements FormatReplacements =

clang/tools/clang-format/ClangFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ int main(int argc, const char **argv) {
703703
FileNames.push_back(Line);
704704
LineNo++;
705705
}
706-
errs() << "Clang-formating " << LineNo << " files\n";
706+
errs() << "Clang-formatting " << LineNo << " files\n";
707707
}
708708

709709
if (FileNames.empty())

clang/tools/scan-build-py/tests/functional/cases/test_create_cdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_append_to_existing_cdb(self):
121121
self.assertEqual(5, self.count_entries(result))
122122

123123

124-
class ResultFormatingTest(unittest.TestCase):
124+
class ResultFormattingTest(unittest.TestCase):
125125
@staticmethod
126126
def run_intercept(tmpdir, command):
127127
result = os.path.join(tmpdir, "cdb.json")

llvm/examples/ExceptionDemo/ExceptionDemo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,15 +879,14 @@ void generateStringPrint(llvm::LLVMContext &context,
879879
builder.CreateCall(printFunct, cast);
880880
}
881881

882-
883882
/// Generates code to print given runtime integer according to constant
884883
/// string format, and a given print function.
885884
/// @param context llvm context
886885
/// @param module code for module instance
887886
/// @param builder builder instance
888887
/// @param printFunct function used to "print" integer
889888
/// @param toPrint string to print
890-
/// @param format printf like formating string for print
889+
/// @param format printf like formatting string for print
891890
/// @param useGlobal A value of true (default) indicates a GlobalValue is
892891
/// generated, and is used to hold the constant string. A value of
893892
/// false indicates that the constant string will be stored on the

0 commit comments

Comments
 (0)