Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to skip forward class declarations. #9

Open
mibli opened this issue May 12, 2022 · 1 comment
Open

Ability to skip forward class declarations. #9

mibli opened this issue May 12, 2022 · 1 comment

Comments

@mibli
Copy link

mibli commented May 12, 2022

Currently searching especially in large code bases can make the fccf process a lot of files.

Use case: User wants to search for a class Bunny in the code.
Execution: fccf -C Bunny
Expected behavior:

// ./Animals/Fun/Bunny.cpp (Line: 24 to 29)
struct Bunny {
  bool plushy;
  Color eyeColor;
  Color furColor;
}

Actual Behavior:

// ./Animals/Predators/Wolf.cpp (Line: 20 to 20)
class Bunny

// ./Farm/Fur/BunnyFarm.cpp (Line: 20 to 20)
class Bunny

... etc

It would be nice to have -C skip forward declarations, or have an option to skip them. If there's such an option I haven't found it. Not only it would help get user what he wants, but it would reduce search times significantly.
On a large code base (~3mln LoC) that optimizes with forward class declarations, looking up a class can take up to 10 minutes. If these wouldn't be matched, it would take up to few seconds.

@mibli
Copy link
Author

mibli commented May 12, 2022

The point is it to be different than --isl, because --isl still has to precompile the code as far as I understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant