GithubHelp home page GithubHelp logo

Comments (2)

rizsotto avatar rizsotto commented on August 27, 2024

comment from Nikola Smiljanić:

Try playing with -ccc-print-phases. I'm not sure if there's a way to start both analyzer and compiler action. Compiler action is what reports the warning, you can enable just this action with -fsyntax-only. But passing both --analyze and -fsyntax-only doesn't seem to work.

from scan-build.

rizsotto avatar rizsotto commented on August 27, 2024

no solution here... all i can see that the compiler phase make the warning.

this suppose to generate the warning.

$ clang -ccc-print-phases -x c not_used_attributes.c 
0: input, "not_used_attributes.c", c
1: preprocessor, {0}, cpp-output
2: compiler, {1}, assembler
3: assembler, {2}, object
4: linker, {3}, image

while the analyzer is silent.

$ clang --analyze -ccc-print-phases -x c not_used_attributes.c 
0: input, "not_used_attributes.c", c
1: preprocessor, {0}, cpp-output
2: analyzer, {1}, plist

and syntax check also generate the expected warning.

$ clang -fsyntax-only -ccc-print-phases -x c not_used_attributes.c 
0: input, "not_used_attributes.c", c
1: preprocessor, {0}, cpp-output
2: compiler, {1}, none

from scan-build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.