1

Is there any C++ source code browser or analyzer which gives 'source code query' feature? For example, I want to find lines in source files like these.

  • Find C++ function declarations which has more than 5 parameters
  • Find C++ virtual functions whose implementation is written in header files

There seems to be a way like Exploring the Visual C++ Browse Database , but mainly its documentation is not to be found.

I checked out Clang for developing it for myself, but it involves too much to learn before developing it.

  • That sounds like a potential extension for Eclipse' functionality actually (it doesn't have that now). Anyway, I rather doubt this is available, although I can see the use in it. – einpoklum Jul 15 '17 at 11:21
  • sonarqube has a c++ analyzer api. It is far from being queriable, but essentially it is walking over your code and you can implement classes with callbacks to the various entity types. – peterh Jul 18 '17 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.