GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cpp-linter-hooks/examples/large-project at main · cpp-linter/cpp-linter-hooks

Expand file tree

/

large-project

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

large-project

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 

README.md

Outline

Large Project — files: Regex

Use files: to limit hooks to relevant directories. This is the #1 perf lever.

One-size-fits-most

      - id: clang-format
        files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$

Common patterns

# Exclude generated code
files: ^src/(?!generated/|proto/).*\.(cpp|hpp)$

# Library (public headers + private src)
files: ^(include|src)/.*\.(cpp|cc|cxx|h|hpp|hxx)$

# Application (no public headers)
files: ^src/.*\.(cpp|cc|cxx|h|hpp)$

# Qt (skip moc_)
files: ^src/(?!moc_|ui_).*\.(cpp|h)$

# CUDA
files: ^src/.*\.(cpp|cc|cxx|cu|cuh|h|hpp)$

# Embedded / bare-metal C
files: \.(c|h|s|S)$

Perf tips

  • Don't lint headers directly with clang-tidy — they're processed when a .cpp includes them. Restrict to files: ^src/.*\.cpp$.
  • Use --jobs=N for clang-tidy — start with N=2, go up to CPU core count.
  • --dry-run for clang-format in CI — report the lines that need formatting instead of changing the files.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.