Skip to content

Commit d1ac3f8

Browse files
committed
clang-format
1 parent 4f635cc commit d1ac3f8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,8 @@ def err_constexpr_main : Error<
10621062
"'main' is not allowed to be declared %select{constexpr|consteval}0">;
10631063
def err_deleted_main : Error<"'main' is not allowed to be deleted">;
10641064
def err_mainlike_template_decl : Error<"%0 cannot be a template">;
1065-
def warn_main_in_named_module : ExtWarn<"'main' never has module linkage">,
1065+
def warn_main_in_named_module
1066+
: ExtWarn<"'main' never has module linkage">,
10661067
InGroup<DiagGroup<"main-attached-to-named-module">>;
10671068
def err_main_returns_nonint : Error<"'main' must return 'int'">;
10681069
def ext_main_returns_nonint : ExtWarn<"return type of 'main' is not 'int'">,

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12488,7 +12488,8 @@ void Sema::CheckMain(FunctionDecl *FD, const DeclSpec &DS) {
1248812488
}
1248912489

1249012490
// [basic.start.main]p3:
12491-
// A program that declares a function main that belongs to the global scope and is attached to a named module is ill-formed.
12491+
// A program that declares a function main that belongs to the global scope
12492+
// and is attached to a named module is ill-formed.
1249212493
if (FD->isInNamedModule()) {
1249312494
const SourceLocation start = FD->getTypeSpecStartLoc();
1249412495
Diag(start, diag::warn_main_in_named_module)

0 commit comments

Comments
 (0)