David Maas
David Maas
Technically the standard does not define the size of some types, [in particular](https://timsong-cpp.github.io/cppwp/n4659/expr.sizeof#1): `bool`, `wchar_t`, and oddly enough: `char16_t`/`char32_t`. In practice, these are all 1 byte, 2 bytes, 2 bytes,...
Idea mentioned by ChemBB during development stream. Supposedly cppyy kinda works like this. This is definitely a pie-in-the-sky concept and would be extremely non-trivial to implement. It'd also have lots...
https://github.com/InfectedLibraries/Biohazrd/issues/188 revealed some performance issues with our translated type reference resolution. We mostly rely on caching for it to perform well in most cases, but for transformations which rely on...
Besides having a really weird name, it's a bit annoying to have to special-case for handling this type when you want to reason about functions from the perspective of their...
In particular this happened with `typed_base_any_policy` in OpenCV.
Right now we typically only ever run with release builds of libclang-pathogen, which do not contain Clang's asserts. We've been unknowingly hitting asserts when enumerating vtables for quite some time....
This property strikes me as being somewhat C#-centric and should be more of an emit implementation detail rather than something that gets emitted from the translation stage. Instead the output...
Found with OpenCV by indexing all root include files without marking nested files as in-scope. ```csharp [Fact] public void InScopeDeclarationWithDefaultParameterValueWithOutOfScopeInlineDefinitionWithoutDefaultParameterValue() { TranslatedLibraryBuilder builder = new(); builder.AddFile(new SourceFile("A.h") { Contents =...
While adding a workaround for https://github.com/ocornut/imgui/pull/3850 I stumbled upon an alternative solution for (potentially?) forcing inline methods to export. Turns out you can add `__declspec(dllexport)` to a forward declaration and...
Out-of-scope file promotion happens eagerly in `TranslationUnitParser.CreateDeclarations`: https://github.com/InfectedLibraries/Biohazrd/blob/99a504b77c076651ade931aa168ce7359adc0a4a/Biohazrd/TranslationUnitParser.cs#L251-L253 An unfortunate side-effect of this is if the `cursor` results in no translated declarations, the file is still promoted and the warning...