ciechowoj

Results 30 comments of ciechowoj

> Natural solution that comes to my mind is to separate all opaque types into own separate module and do public aliases of those symbols in modules they are originally...

All files are translated independently, there is no shared state.

> I would hope it's possible to using libclang to lex the file to get the tokens of the branch that is not compiled. Then run the tokens through libclang...

> This should be avoided. I suppose it will be hard to avoid. The only API that libclang provides is [clang_getSkippedRanges](http://clang.llvm.org/doxygen/group__CINDEX__LOCATIONS.html#gae27bc89151459aeb94e0fb7aa0552d35), but it isn't enough : (. Ideally I would...

> Why do you think intermixing Cursors from different TUs would be a bad idea? An example: Let `a` be from main translation unit and represents a `struct A;` and...

> I'm not sure if you would like to go the route but there's always the possibility to contribute to libclang by extending the API if we need to. I...

> They're considering moving the project to git :smiley:. Nice to hear that. > If one would have access to both branches of a preprocessor if statement would might also...

@jacob-carlborg do you have any specific examples (e.g C library) where `#error`s make a problem ?

Very desperate solution would be to copy all header files belonging to current translation (e.g. to /tmp), replace all `#error`, run the dstep on such modified files and do some...

``` error[E0277]: the trait bound `nalgebra::base::constraint::ShapeConstraint: nalgebra::base::constraint::DimEq` is not satisfied --> src/game.rs:72:26 | 72 | let xxx = brick_size * brick_spacing; | ^ the trait `nalgebra::base::constraint::DimEq` is not implemented for...