Home
last modified time | relevance | path

Searched refs:CurrentSema (Results 1 – 2 of 2) sorted by relevance

/external/clang/unittests/Sema/
DExternalSemaSourceTest.cpp98 Sema *CurrentSema; member in __anon1ee1c6270111::NamespaceTypoProvider
102 : CorrectFrom(From), CorrectTo(To), CurrentSema(nullptr), CallCount(0) {} in NamespaceTypoProvider()
104 void InitializeSema(Sema &S) override { CurrentSema = &S; } in InitializeSema()
106 void ForgetSema() override { CurrentSema = nullptr; } in ForgetSema()
114 if (CurrentSema && Typo.getName().getAsString() == CorrectFrom) { in CorrectTypo()
116 ASTContext &Context = CurrentSema->getASTContext(); in CorrectTypo()
118 DestContext = CurrentSema->computeDeclContext(*SS, EnteringContext); in CorrectTypo()
122 CurrentSema->getPreprocessor().getIdentifierInfo(CorrectTo); in CorrectTypo()
140 Sema *CurrentSema; member in __anon1ee1c6270111::FunctionTypoProvider
144 : CorrectFrom(From), CorrectTo(To), CurrentSema(nullptr), CallCount(0) {} in FunctionTypoProvider()
[all …]
/external/llvm-project/clang/unittests/Sema/
DExternalSemaSourceTest.cpp97 Sema *CurrentSema; member in __anon683099b50111::NamespaceTypoProvider
101 : CorrectFrom(From), CorrectTo(To), CurrentSema(nullptr), CallCount(0) {} in NamespaceTypoProvider()
103 void InitializeSema(Sema &S) override { CurrentSema = &S; } in InitializeSema()
105 void ForgetSema() override { CurrentSema = nullptr; } in ForgetSema()
113 if (CurrentSema && Typo.getName().getAsString() == CorrectFrom) { in CorrectTypo()
115 ASTContext &Context = CurrentSema->getASTContext(); in CorrectTypo()
117 DestContext = CurrentSema->computeDeclContext(*SS, EnteringContext); in CorrectTypo()
121 CurrentSema->getPreprocessor().getIdentifierInfo(CorrectTo); in CorrectTypo()
139 Sema *CurrentSema; member in __anon683099b50111::FunctionTypoProvider
143 : CorrectFrom(From), CorrectTo(To), CurrentSema(nullptr), CallCount(0) {} in FunctionTypoProvider()
[all …]