Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Sema/Sema.h
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 4,069 Lines • ▼ Show 20 Lines | enum RedeclarationKind { | ||||
ForExternalRedeclaration | ForExternalRedeclaration | ||||
}; | }; | ||||
RedeclarationKind forRedeclarationInCurContext() { | RedeclarationKind forRedeclarationInCurContext() { | ||||
// A declaration with an owning module for linkage can never link against | // A declaration with an owning module for linkage can never link against | ||||
// anything that is not visible. We don't need to check linkage here; if | // anything that is not visible. We don't need to check linkage here; if | ||||
// the context has internal linkage, redeclaration lookup won't find things | // the context has internal linkage, redeclaration lookup won't find things | ||||
// from other TUs, and we can't safely compute linkage yet in general. | // from other TUs, and we can't safely compute linkage yet in general. | ||||
if (cast<Decl>(CurContext) | if (cast<Decl>(CurContext)->getModuleAttachment(/*IgnoreLinkage*/true)) | ||||
Lint: Pre-merge checks: clang-format: please reformat the code
```
- if (cast<Decl>(CurContext)->getModuleAttachment… | |||||
->getOwningModuleForLinkage(/*IgnoreLinkage*/true)) | |||||
return ForVisibleRedeclaration; | return ForVisibleRedeclaration; | ||||
return ForExternalRedeclaration; | return ForExternalRedeclaration; | ||||
} | } | ||||
/// The possible outcomes of name lookup for a literal operator. | /// The possible outcomes of name lookup for a literal operator. | ||||
enum LiteralOperatorLookupResult { | enum LiteralOperatorLookupResult { | ||||
/// The lookup resulted in an error. | /// The lookup resulted in an error. | ||||
LOLR_Error, | LOLR_Error, | ||||
▲ Show 20 Lines • Show All 9,188 Lines • Show Last 20 Lines |
clang-format: please reformat the code