Changeset View
Changeset View
Standalone View
Standalone View
language/duchain/topducontext.h
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Line(s) | 109 | public: | |||
---|---|---|---|---|---|
172 | * \note you must be holding a read but not a write chain lock when you access this function. | 172 | * \note you must be holding a read but not a write chain lock when you access this function. | ||
173 | */ | 173 | */ | ||
174 | virtual bool imports(const DUContext* origin, const CursorInRevision& position) const override; | 174 | virtual bool imports(const DUContext* origin, const CursorInRevision& position) const override; | ||
175 | 175 | | |||
176 | enum { | 176 | enum { | ||
177 | Identity = 4 | 177 | Identity = 4 | ||
178 | }; | 178 | }; | ||
179 | 179 | | |||
180 | enum Features { | 180 | enum Features : ushort { | ||
mwolff: here and elsewhere: I'd prefer using explicit `uint8_t` etc | |||||
181 | ///Top-context features standard that can be requested from the duchain, and that are stored in the features() member. | 181 | ///Top-context features standard that can be requested from the duchain, and that are stored in the features() member. | ||
182 | Empty = 0, //Only the top-context structure (imports etc.) is built, but no declarations and no contexts | 182 | Empty = 0, //Only the top-context structure (imports etc.) is built, but no declarations and no contexts | ||
183 | SimplifiedVisibleDeclarationsAndContexts = 2, //The top-context should only contain publically simplified accessible declarations and contexts, without doing type look-up, | 183 | SimplifiedVisibleDeclarationsAndContexts = 2, //The top-context should only contain publically simplified accessible declarations and contexts, without doing type look-up, | ||
184 | //without extended information like function-argument declarations, etc., imported contexts can be parsed with 'Empty' features | 184 | //without extended information like function-argument declarations, etc., imported contexts can be parsed with 'Empty' features | ||
185 | //This flag essentially leads to a ctags-like processing level. | 185 | //This flag essentially leads to a ctags-like processing level. | ||
186 | VisibleDeclarationsAndContexts = SimplifiedVisibleDeclarationsAndContexts + 4, //Default: The top-context should only contain publically accessible declarations and contexts | 186 | VisibleDeclarationsAndContexts = SimplifiedVisibleDeclarationsAndContexts + 4, //Default: The top-context should only contain publically accessible declarations and contexts | ||
187 | AllDeclarationsAndContexts = VisibleDeclarationsAndContexts + 8, //The top-context should also contain non-public declarations and contexts, but no uses | 187 | AllDeclarationsAndContexts = VisibleDeclarationsAndContexts + 8, //The top-context should also contain non-public declarations and contexts, but no uses | ||
188 | AllDeclarationsContextsAndUses = 16 + AllDeclarationsAndContexts, //The top-context should contain uses and all declarations + contexts | 188 | AllDeclarationsContextsAndUses = 16 + AllDeclarationsAndContexts, //The top-context should contain uses and all declarations + contexts | ||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |
here and elsewhere: I'd prefer using explicit uint8_t etc