Re:Show HN: Online C/C++ Code Browser
by alschwalm on Monday March 07, 2016 @03:34PM
(#11241408)
Awesome work! I've actually been making something in a similar vein myself, but it's not nearly this polished.
One issue (I'm not sure how it could be fixed) is that sections of code that were disabled by the preprocessor are not highlighted at all. For example, the compiler (or flags) used when parsing the boost code did not support move semantics, so "BOOST_NO_CXX11_RVALUE_REFERENCES" was defined, which means this line is not parsed:
One issue (I'm not sure how it could be fixed) is that sections of code that were disabled by the preprocessor are not highlighted at all. For example, the compiler (or flags) used when parsing the boost code did not support move semantics, so "BOOST_NO_CXX11_RVALUE_REFERENCES" was defined, which means this line is not parsed:
https://code.woboq.org/boost/boost/boost/any.hpp.html#69
But this is a minor thing, and I'm not sure there's really a solution.