Closed CyberShadow closed 3 years ago
Regular expressions can only get us so far. E.g. this currently is not in imenu:
void run(Parameter!("foo()") command) {}
Even if we ignore the parameter list, one can still create a type (for the function return type) with pretty much arbitrary tokens.
Perhaps c-find-decl-spots and other related cc-mode machinery could be reused to find declarations with better precision.
c-find-decl-spots
Regular expressions can only get us so far. E.g. this currently is not in imenu:
Even if we ignore the parameter list, one can still create a type (for the function return type) with pretty much arbitrary tokens.
Perhaps
c-find-decl-spots
and other related cc-mode machinery could be reused to find declarations with better precision.