Git Product home page Git Product logo

centrinel's Introduction

Hi there ๐Ÿ‘‹

<img src="under_construction.gif" width="640px"/>
<marquee>Welcome to my GeoCities!</marquee>
flowchart LR
  w("โ˜•") --> eb("๐Ÿฅ“")
  eb --> wc("๐Ÿ’ป") 
  wc --> eb2("๐Ÿฅ“๐Ÿฅ“")
  eb2 --> s("๐Ÿ˜ด")
  s --> w
Loading

๐Ÿš๏ธ ๐Ÿ“ 

centrinel's People

Contributors

lambdageek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

centrinel's Issues

Ability to add an attribute to a stuct fwd declaration

If we have something like:

  typedef struct _A __CENTRINEL_MANAGED_ATTR A;

  void foo (A* a);

We should get a warning about the use of A* in the type of foo since struct _A has been explicitly tagged with a region attribute.

New analysis: detect missing write barriers

If typeof(e) is a managed ptr and typeof (e->f) is too, then e->f = o should elicit a warning.

(In Mono, the correct expression would be mono_gc_wbarrier_generic_store (&e->f, o))

Cache per-location warnings, not per translation unit

This is a refinement of #11 - we should cache centrinel warnings based on the content of the warning - so for example if the same declaration comes into scope in different translation units (or the same translation unit but different CFLAGS in compile_commands.json) we should report it only the first time.

Be more flexible about finding suppress pragmas in blocks

Right now we only look for a suppress attribute on the first statement of a compound block:

{
  _dummy_label: __attribute__(suppress(1)); /* see https://github.com/visq/language-c/issues/32 for why we need a label here */
  .. code...
}

But it would be helpful to also to switch back and forth inside a block:

{
   ..code...
   suppress(1); /* switch suppression off until next suppress pragma in the same block */
   ... unchecked code ...
   suppress(0); /* switch back to checking until end of scope */
   ... checked code ...
}

Suppress warnings attribute on declarations

Right now we can suppress block scopes, but there's no way to suppress warnings about a declaration.

In particular it would be nice to combine with mono's annotation for deprecated APIs so that we don't get thousands of warnings about functions that we can't call anyway.

Add option to send output to a file

Don't just write to stdout, write to a log file

ideal:

centrinel --project compile_commands.json --output file.log
[nothing is printed to stdout]

Produce smaller JSON blob

See lambdageek/centrinel-report#1

It may make sense to produce a single JSON file per translation unit and update centrinel-report to consume some version of the compile_commands.json database.

(would also have to munge the commands db before processing to note multiple invokes on a single translation unit)

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.