jbenden / vscode-c-cpp-flylint

A VS Code extension for advanced, modern, static analysis of C/C++ that supports a number of back-end analyzer programs.
MIT License
153 stars 29 forks source link

Vscode with clang but dont know how to use C/C++ advanced lint #120

Closed OrdinaryChen closed 3 years ago

OrdinaryChen commented 3 years ago

I work with Vscode on ubuntu, and down clang with apt-get install, but this plug dose not work , and nothing happen to my code.....I dont know how to use C/C++ advanced lint....anyone can help me??

Cygon commented 3 years ago

I am having the same problem. My system has GCC and clang in the standard search paths. I use VSCodium and just installed + enabled this extension. Now what?

There doesn't seem to be anything automatic happening in the background, no new buttons and the documentation doesn't mention how to run a static analysis, whether it runs automatically and if it runs, how/where the results are presented.

OrdinaryChen commented 3 years ago

problem solved,anwser is leave vscode away and use awsome CLion

Cygon commented 3 years ago

Not an option for me. I stongly dislike CLion and the other subscription-licensed JetBrains products. Also: Java.

MoshePerez commented 3 years ago

I had the same problem, Running C/C++ Flylint: Toggle Workspace Trust Flag in the command palette solved it for me.

Cygon commented 3 years ago

@MoshePerez I already have this workspace set as trusted.

How do you notice that the extension is active? I have no new panels, no extra info in the gutter lines, no new project configuration options, absolutely nothing added or changed as far as I can tell...

MoshePerez commented 3 years ago

@Cygon My workspace was already set as trusted also. I had to run it anyway, specifically for this extension.

jbenden commented 3 years ago

This project is a proxy for multiple source code static analysis tools. It does not have much configuration.

A union of all tools is required. There is much configuration with compilers and the analysis tools.