enum Sema::RedeclarationKind

Description

Specifies whether (or how) name lookup is being performed for a redeclaration (vs. a reference).

Declared at: clang/include/clang/Sema/Sema.h:4215

Enumerators

NameValueComment
NotForRedeclaration0The lookup is a reference to this name that is not for the purpose of redeclaring the name.
ForVisibleRedeclaration1The lookup results will be used for redeclaration of a name, if an entity by that name already exists and is visible.
ForExternalRedeclaration2The lookup results will be used for redeclaration of a name with external linkage; non-visible lookup results with external linkage may also be found.