Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A crude, probably broken parser for detecting global variables in C++ code

Usage

Place files to parse in input/ or its subdirectories. Run the program using sbt run to parse all files. Files with global variables will fail to parse.

Defects

  • top-level wildcards deprecated since scala 2.13.7, wait for fastparse to migrate to scala 3

False positives

  • function declarations
    • int b(a); can be a function or a variable declaration depending on whether a is a type or a variable.
  • static member variables?
    • but they are just scoped global variables

About

A crude, probably broken parser for detecting global variables in C++ code

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages