Lines Matching defs:TargetNS
69 // Synthesize a DeclContext for TargetNS from CurContext. TargetNS must be empty
71 // Returns std::nullopt if TargetNS is not a prefix of CurContext.
73 findContextForNS(llvm::StringRef TargetNS, const DeclContext *CurContext) {
74 assert(TargetNS.empty() || TargetNS.ends_with("::"));
77 // If TargetNS is empty, it means global ns, which is translation unit.
78 if (TargetNS.empty()) {
84 // we reach TargetNS.
92 // If TargetNS is not a prefix of CurrentContext, there's no way to reach
94 if (!CurrentContextNS.starts_with(TargetNS))
97 while (CurrentContextNS != TargetNS) {
99 // These colons always exists since TargetNS is a prefix of