Skip to content

Commit e6a33f8

Browse files
using hashmap to identify Sema & AST for individual Decl
We need to identify which interpreter a Decl belongs to, when using multiple interpreter. We do it by checking which `clang::ASTContext` the `clang::Decl` belongs We maintain a map: `clang::ASTContext -> Cpp::InterpreterInfo`. Using this map, be identify the correct interpreter. There are 2 usecases for this: 1. We can now lock the correct interpreter making it thread safe. 2. User of `libCppInterOp` need not set the correct active interpreter using `Cpp::ActivateInterpreter`, this information can be retrived using the map.
1 parent f6fb835 commit e6a33f8

File tree

3 files changed

+215
-134
lines changed

3 files changed

+215
-134
lines changed

lib/.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Checks: >
2+
-cppcoreguidelines-avoid-non-const-global-variables

0 commit comments

Comments
 (0)