Skip to content

Commit

Permalink
Revert "fix bug that undefined internal is a warning only for -pedant…
Browse files Browse the repository at this point in the history
…ic-errors (#98016)"

This reverts commit e16882f.

Broken bots:
https://lab.llvm.org/buildbot/#/builders/144/builds/2080
  • Loading branch information
AaronBallman committed Jul 11, 2024
1 parent dd44003 commit 9f283bf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
3 changes: 0 additions & 3 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,6 @@ Attribute Changes in Clang

Improvements to Clang's diagnostics
-----------------------------------
- Clang now emits an error instead of a warning for ``-Wundefined-internal``
when compiling with `-pedantic-errors` to conform to the C standard

- Clang now applies syntax highlighting to the code snippets it
prints.

Expand Down
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -6016,7 +6016,7 @@ def note_deleted_assign_field : Note<
"because field %2 is of %select{reference|const-qualified}4 type %3">;

// These should be errors.
def warn_undefined_internal : ExtWarn<
def warn_undefined_internal : Warning<
"%select{function|variable}0 %q1 has internal linkage but is not defined">,
InGroup<DiagGroup<"undefined-internal">>;
def err_undefined_internal_type : Error<
Expand Down
29 changes: 0 additions & 29 deletions clang/test/Sema/undefined-internal-basic.c

This file was deleted.

10 changes: 0 additions & 10 deletions clang/test/Sema/undefined-internal-typeof-c23.c

This file was deleted.

0 comments on commit 9f283bf

Please sign in to comment.