Skip to content

Commit

Permalink
[Clang] Fixes a diagnostic typo.
Browse files Browse the repository at this point in the history
Some small style updates as drive-by.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D153038
  • Loading branch information
mordante committed Jun 16, 2023
1 parent b72a7cb commit 501405f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/DiagnosticSerializationKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def warn_eagerly_load_for_standard_cplusplus_modules : Warning<
InGroup<DiagGroup<"eager-load-cxx-named-modules">>;

def warn_reading_std_cxx_module_by_implicit_paths : Warning<
"it is deprecated to read module '%0' implcitly; it is going to be removed in clang18; "
"it is deprecated to read module '%0' implicitly; it is going to be removed in clang 18; "
"consider to specify the dependencies explicitly">,
InGroup<DiagGroup<"read-modules-implicitly">>;
} // let CategoryName
Expand Down
8 changes: 4 additions & 4 deletions clang/test/Modules/no-implicit-std-cxx-module.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// RUN: -o %t/a.pcm
// RUN: %clang_cc1 -std=c++20 %t/user.cpp -fmodule-file=a=%t/a.pcm -verify -fsyntax-only
// RUN: %clang_cc1 -std=c++20 %t/user.cpp -fmodule-file=a=%t/a.pcm -verify -fsyntax-only \
// RUN: -Wno-read-modules-implicitly -DNO_DIAG
// RUN: -Wno-read-modules-implicitly -DNO_DIAG
// RUN: %clang_cc1 -std=c++20 %t/user.cpp -fmodule-file=a=%t/a.pcm -fmodule-file=b=%t/b.pcm \
// RUN: -DNO_DIAG -verify -fsyntax-only
//
Expand Down Expand Up @@ -35,7 +35,7 @@ export int a() {
return b() + 43;
}

// CHECK: it is deprecated to read module 'b' implcitly;
// CHECK: it is deprecated to read module 'b' implicitly;

// CHECK-CORRECT-NOT: warning
// CHECK-CORRECT-NOT: error
Expand All @@ -47,9 +47,9 @@ export int a() {
#ifdef NO_DIAG
// expected-no-diagnostics
#else
// expected-warning@+2 {{it is deprecated to read module 'b' implcitly;}}
// expected-warning@+2 {{it is deprecated to read module 'b' implicitly;}}
#endif
import a;
int use() {
return a();
}
}

0 comments on commit 501405f

Please sign in to comment.