Skip to content

Commit b304523

Browse files
committed
Remove the introduced feature flag
1 parent 193452b commit b304523

19 files changed

+20
-43
lines changed

clang/include/clang/Basic/LangOptions.def

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,6 @@ LANGOPT(BoundsSafety, 1, 0, "Bounds safety extension for C")
534534

535535
LANGOPT(PreserveVec3Type, 1, 0, "Preserve 3-component vector type")
536536

537-
COMPATIBLE_LANGOPT(DelayedTypoCorrection, 1, 0, "True if we want to allow "
538-
"delayed typo correction. This can improve typo correction "
539-
"behavior in C++, particularly around template "
540-
"instantiations, but comes at the expense of potentially "
541-
"crashing Clang.")
542-
543537
#undef LANGOPT
544538
#undef COMPATIBLE_LANGOPT
545539
#undef BENIGN_LANGOPT

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,9 +2025,6 @@ def fcrash_diagnostics_dir : Joined<["-"], "fcrash-diagnostics-dir=">,
20252025
Group<f_clang_Group>, Flags<[NoArgumentUnused]>,
20262026
Visibility<[ClangOption, CLOption, DXCOption]>,
20272027
HelpText<"Put crash-report files in <dir>">, MetaVarName<"<dir>">;
2028-
def fdelayed_typo_correction : Flag<["-"], "fdelayed-typo-correction">, Group<f_clang_Group>,
2029-
HelpText<"Enable delayed typo correction">, Visibility<[CC1Option]>,
2030-
MarshallingInfoFlag<LangOpts<"DelayedTypoCorrection">>;
20312028
def fcreate_profile : Flag<["-"], "fcreate-profile">, Group<f_Group>;
20322029
defm cxx_exceptions: BoolFOption<"cxx-exceptions",
20332030
LangOpts<"CXXExceptions">, DefaultFalse,

clang/test/FixIt/fixit-unicode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// There's a set of additional checks for systems with proper support of UTF-8
33
// on the standard output in fixit-unicode-with-utf8-output.c.
44

5-
// RUN: not %clang_cc1 -fsyntax-only -fdelayed-typo-correction -fno-diagnostics-show-line-numbers %s 2>&1 | FileCheck -strict-whitespace %s
6-
// RUN: not %clang_cc1 -fsyntax-only -fdelayed-typo-correction -fno-diagnostics-show-line-numbers -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck -check-prefix=CHECK-MACHINE %s
5+
// RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-line-numbers %s 2>&1 | FileCheck -strict-whitespace %s
6+
// RUN: not %clang_cc1 -fsyntax-only -fno-diagnostics-show-line-numbers -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck -check-prefix=CHECK-MACHINE %s
77

88
struct Foo {
99
int bar;

clang/test/FixIt/fixit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -pedantic -Wunused-label -Wno-deprecated-non-prototype -fdelayed-typo-correction -verify -x c %s
1+
// RUN: %clang_cc1 -pedantic -Wunused-label -Wno-deprecated-non-prototype -verify -x c %s
22
// RUN: cp %s %t
3-
// RUN: not %clang_cc1 -pedantic -Wunused-label -fdelayed-typo-correction -fixit -x c %t
3+
// RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
44
// RUN: %clang_cc1 -pedantic -Wunused-label -Wno-deprecated-non-prototype -Werror -x c %t
55
// RUN: grep -v CHECK %t | FileCheck %t
66

clang/test/FixIt/typo-location-bugs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -fsyntax-only -fdelayed-typo-correction -verify %s
1+
// RUN: %clang_cc1 -fsyntax-only -verify %s
22
// RUN: cp %s %t
3-
// RUN: not %clang_cc1 -fdelayed-typo-correction -fixit -x c++ %t
3+
// RUN: not %clang_cc1 -fixit -x c++ %t
44
// RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t
55

66
namespace dcl_fct_default_p10 {

clang/test/Misc/serialized-diags.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ - (void) test2 {}
1111
@end
1212

1313
// RUN: rm -f %t
14-
// RUN: not %clang -Wall -Xclang -fdelayed-typo-correction -fsyntax-only %s --serialize-diagnostics %t.diag > /dev/null 2>&1
14+
// RUN: not %clang -Wall -fsyntax-only %s --serialize-diagnostics %t.diag > /dev/null 2>&1
1515
// RUN: c-index-test -read-diagnostics %t.diag > %t 2>&1
1616
// RUN: FileCheck --input-file=%t %s
1717

clang/test/Modules/crash-typo-correction-visibility.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: mkdir -p %t
2-
// RUN: %clang_cc1 -x c++ -std=c++11 -fdelayed-typo-correction -fmodules -fmodule-name=module -o %t/module.pcm -emit-module %S/Inputs/crash-typo-correction-visibility/module.modulemap
3-
// RUN: %clang_cc1 -x c++ -std=c++11 -fdelayed-typo-correction -fmodules -fmodule-file=%t/module.pcm %s -verify
2+
// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-name=module -o %t/module.pcm -emit-module %S/Inputs/crash-typo-correction-visibility/module.modulemap
3+
// RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -fmodule-file=%t/module.pcm %s -verify
44

55
struct S {
66
int member; // expected-note {{declared here}}

clang/test/Modules/diagnose-missing-import.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: rm -rf %t
22
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I%S/Inputs/diagnose-missing-import \
3-
// RUN: -Werror=implicit-function-declaration -fsyntax-only -fdelayed-typo-correction \
3+
// RUN: -Werror=implicit-function-declaration -fsyntax-only \
44
// RUN: -fimplicit-module-maps -verify %s
55
@import NCI;
66

clang/test/Modules/suggest-include.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t
2-
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -fdelayed-typo-correction -I%S/Inputs/suggest-include %s -verify
2+
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fimplicit-module-maps -I%S/Inputs/suggest-include %s -verify
33

44
#include "empty.h" // import the module file
55

clang/test/Parser/switch-recovery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -fdelayed-typo-correction -verify %s
1+
// RUN: %clang_cc1 -fsyntax-only -verify %s
22

33
struct A {};
44
struct B {

0 commit comments

Comments
 (0)