anthropics / claudes-c-compiler
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
  • 7 extensions are included in analyses: rs, txt, md, h, sh, gitignore, toml
  • 1 criterion is used to exclude files from analysis:
    • exclude files with path like ".*/bin/.*" (Binaries for distribution) (4 files).
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main151285 LOC (90%) 364 files
test0 LOC (0%) 0 files
generated0 LOC (0%) 0 files
build and deployment55 LOC (<1%) 8 files
other15794 LOC (9%) 68 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 364 files match defined criteria (151,285 LOC, 100.0% vs. main code):
    • 347 *.rs files (143,149 LOC)
    • 17 *.h files (8,136 LOC)
  • " *.rs" is biggest, containing 94.62% of LOC.
  • " *.h" is smallest, containing 5.38% of LOC.


*.rs143149 LOC (94%) 347 files
*.h8136 LOC (5%) 17 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/Cargo[.]toml".
  • 8 files match defined criteria (55 LOC, 0.0% vs. main code):
    • 1 *.toml files (29 LOC)
    • 6 *.sh files (18 LOC)
    • 1 *.gitignore files (8 LOC)
  • " *.toml" is biggest, containing 52.73% of LOC.
  • " *.gitignore" is smallest, containing 14.55% of LOC.


*.toml29 LOC (52%) 1 file
*.sh18 LOC (32%) 6 files
*.gitignore8 LOC (14%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 68 files match defined criteria (15,794 LOC, 10.4% vs. main code):
    • 33 *.md files (14,489 LOC)
    • 35 *.txt files (1,305 LOC)
  • " *.md" is biggest, containing 91.74% of LOC.
  • " *.txt" is smallest, containing 8.26% of LOC.


*.md14489 LOC (91%) 33 files
*.txt1305 LOC (8%) 35 files
Analyzers
Info about analyzers used for source code examinations.
  • *.rs files are analyzed with RustAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.h files are analyzed with CppAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis


2026-06-24 10:48