-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang] Improve diagnostic for reopened inline namespace
Reviewed By: cor3ntin, aaron.ballman Differential Revision: https://reviews.llvm.org/D122278
- Loading branch information
1 parent
fc3cdd0
commit 528e6eb
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// RUN: %clang_cc1 -fsyntax-only -Wall -verify -std=c++11 %s | ||
|
||
// Regression test for #50794. | ||
|
||
// expected-note@+1 2 {{previous definition is here}} | ||
inline namespace X {} | ||
|
||
namespace X {} // expected-warning {{inline namespace reopened as a non-inline namespace}} | ||
namespace X {} // expected-warning {{inline namespace reopened as a non-inline namespace}} |