-
Notifications
You must be signed in to change notification settings - Fork 15.7k
[clang] Ignore inline namespace for hasName
#109147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
d369d26
d391541
bd40141
17b5893
3bb9d07
1898d4a
a196be3
23837c6
c3ce31c
671d8b0
2ac1a6d
21f66eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,15 +55,17 @@ class PrintingCallbacks { | |||||||
| /// This type is intended to be small and suitable for passing by value. | ||||||||
| /// It is very frequently copied. | ||||||||
| struct PrintingPolicy { | ||||||||
| enum class SuppressInlineNamespaceMode : uint8_t { None, Redundant, All }; | ||||||||
|
|
||||||||
| /// Create a default printing policy for the specified language. | ||||||||
| PrintingPolicy(const LangOptions &LO) | ||||||||
| : Indentation(2), SuppressSpecifiers(false), | ||||||||
| SuppressTagKeyword(LO.CPlusPlus), IncludeTagDefinition(false), | ||||||||
| SuppressScope(false), SuppressUnwrittenScope(false), | ||||||||
| SuppressInlineNamespace(true), SuppressElaboration(false), | ||||||||
| SuppressInitializers(false), ConstantArraySizeAsWritten(false), | ||||||||
| AnonymousTagLocations(true), SuppressStrongLifetime(false), | ||||||||
| SuppressLifetimeQualifiers(false), | ||||||||
| SuppressInlineNamespace(SuppressInlineNamespaceMode::Redundant), | ||||||||
| SuppressElaboration(false), SuppressInitializers(false), | ||||||||
| ConstantArraySizeAsWritten(false), AnonymousTagLocations(true), | ||||||||
| SuppressStrongLifetime(false), SuppressLifetimeQualifiers(false), | ||||||||
| SuppressTemplateArgsInCXXConstructors(false), | ||||||||
| SuppressDefaultTemplateArgs(true), Bool(LO.Bool), | ||||||||
| Nullptr(LO.CPlusPlus11 || LO.C23), NullptrTypeInNamespace(LO.CPlusPlus), | ||||||||
|
|
@@ -141,10 +143,11 @@ struct PrintingPolicy { | |||||||
| unsigned SuppressUnwrittenScope : 1; | ||||||||
|
|
||||||||
| /// Suppress printing parts of scope specifiers that correspond | ||||||||
| /// to inline namespaces, where the name is unambiguous with the specifier | ||||||||
| /// to inline namespaces. | ||||||||
| /// If Redudant, where the name is unambiguous with the specifier removed. | ||||||||
| /// If All, even if the name is ambiguous with the specifier | ||||||||
| /// removed. | ||||||||
| LLVM_PREFERRED_TYPE(bool) | ||||||||
| unsigned SuppressInlineNamespace : 1; | ||||||||
| SuppressInlineNamespaceMode SuppressInlineNamespace : 2; | ||||||||
|
||||||||
| SuppressInlineNamespaceMode SuppressInlineNamespace : 2; | |
| LLVM_PREFERRD_TYPE(SuppressInlineNamespaceMode) | |
| unsigned SuppressInlineNamespace : 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied by hand, since there was a typo (PREFERRD vs PREFERRED)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, good catch! :-D
Uh oh!
There was an error while loading. Please reload this page.