Code Monkey home page Code Monkey logo

Comments (5)

pfirsich avatar pfirsich commented on June 4, 2024 1

I pulled the night before posting my comment, my bad! The current version works great. Thanks again!

from fccf.

p-ranav avatar p-ranav commented on June 4, 2024

Thanks for the request. I've tried to add support for this now.

You can use the flag --ie or --include-expressions to get all the places where a variable or function was used.

Example 1: Usage of function

Look for all the places where the function isdigit was called:

image

Example 2: Usage of variable

image

Hope this meets your needs.

from fccf.

pfirsich avatar pfirsich commented on June 4, 2024

This is exactly what I was looking for, thank you!
Sadly it's not quite working right in my test project. I am currently working on an HTTP server and if run fccf --ie debug src in the repository root, I would expect to see usages of the slog::debug (defined in src/log.hpp), but I don't see any, even though there a plenty of them (see e.g. src/main.cpp or src/ssl.cpp). I suspected it might be because it's a variadic template function, but that doesn't seem to be a problem in a minimal test.

from fccf.

p-ranav avatar p-ranav commented on June 4, 2024

What version of fccf are you using? Is it the latest v0.5.0?

This is my output:

2022-04-29.06-42-19.mp4

from fccf.

p-ranav avatar p-ranav commented on June 4, 2024

NOTE: Run with --verbose flag to check if there are include errors reported by libclang. I mention this here in the README.

If you see that certain headers cannot be found, you can use --include-dir or -I to provide additional include directories and resolve these errors.

2022-04-29.06-43-28.mp4

from fccf.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.