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

Drop-in equivalent to clang-tidy #31

Open
DarkTyger opened this issue Apr 30, 2024 · 0 comments
Open

Drop-in equivalent to clang-tidy #31

DarkTyger opened this issue Apr 30, 2024 · 0 comments

Comments

@DarkTyger
Copy link

$ cd /tmp
$ git clone https://github.com/mathstuf/clang-tidy-cache
$ cd clang-tidy-cache
$ make
$ mv clang-tidy-cache $HOME/bin
$ cd $HOME/repos/project
$ make clean; CXX=clang++ make
$ ll *json
-rw-r--r-- 1 user user 629 Apr 16 14:32 compile_commands.json
$ make lint
... snip ...
[1/159] Processing file $HOME/repos/project/src/EventLogger.cpp.
44874 warnings generated.
...^C
$ make LINTER=clang-tidy-cache lint

Expected
Source files are linted.

Actual
Error:

Failed to get commands: Unable to locate the compiler definition

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