Dulma Churchill
a44109b2b2
[linters] Pass the current method in the context to the checks about the methods or functions declarations
...
Reviewed By: ddino
Differential Revision: D3937070
fbshipit-source-id: da7b4a6
8 years ago
Dulma Churchill
befab1007b
[clang] Migrating clang logging to the Logging module
...
Reviewed By: jberdine
Differential Revision: D3931164
fbshipit-source-id: 4dd87ea
8 years ago
Dulma Churchill
a2ee69975a
[clang] Remove support for logging lint issues in procdescs
...
Reviewed By: jberdine
Differential Revision: D3894307
fbshipit-source-id: 99208f5
8 years ago
Dulma Churchill
f99d3a7c8e
Add an option clang-frontend-action to drive the frontend into capture or linters when the -a capture option is used
...
Reviewed By: jberdine
Differential Revision: D3828294
fbshipit-source-id: 6b471e5
8 years ago
Dulma Churchill
f6636c6d41
Store the issue file only if there are issues
...
Reviewed By: jberdine
Differential Revision: D3819698
fbshipit-source-id: 63b9e3d
8 years ago
Martino Luca
7de52e7649
Check early whether the given decl has to be checked with linters or not
...
Reviewed By: dulmarod
Differential Revision: D3728836
fbshipit-source-id: a3fa865
9 years ago
Dulma Churchill
07bf714d91
Put current method in context
...
Reviewed By: jvillard
Differential Revision: D3741728
fbshipit-source-id: 6710016
9 years ago
Dulma Churchill
b7ec110ea3
Adding new mode linters
...
Summary:
Adding a new mode linters. Now if the analyzer is linters, we do the linters and don't translate,
then, if the analyzer is Infer, we do the translation and the backend and not the linters checks, and the
default is that we do capture, backend and lint checks.
Made the tests separated, which saves time and also shows that the linters mode works.
Reviewed By: jvillard
Differential Revision: D3723472
fbshipit-source-id: 9d828d8
9 years ago
Dulma Churchill
3d39fba622
Refactor InferPrint and store the lint issues in a serialized data structure that InferPrint picks up and prints.
...
Reviewed By: jberdine
Differential Revision: D3641944
fbshipit-source-id: aad36e6
9 years ago
Ryan Rhee
8a40482fac
Detect when in CK
...
Reviewed By: jvillard
Differential Revision: D3693935
fbshipit-source-id: e381966
9 years ago
Ryan Rhee
d2a4028881
Call decl checkers on DeclStmt statements
...
Reviewed By: jvillard
Differential Revision: D3649322
fbshipit-source-id: 60b1b92
9 years ago
Martino Luca
bed9b31c62
Add general context to linters framework to implement smarter checks
...
Summary:
Make checks context-aware, to increase flexibility.
As an example application of this change, whenever an atomic property is accessed from within a synchronized block, skip reporting a `DIRECT_ATOMIC_PROPERTY_ACCESS` warning.
Reviewed By: jvillard
Differential Revision: D3648831
fbshipit-source-id: c033f45
9 years ago
Martino Luca
da2717ff2a
Migrate BAD_POINTER_COMPARISON check from backend to linters infra
...
Reviewed By: dulmarod
Differential Revision: D3614726
fbshipit-source-id: bdc7651
9 years ago
Dulma Churchill
0253608fab
Separate the flow of the frontend checks form the translation
...
Reviewed By: akotulski
Differential Revision: D3543519
fbshipit-source-id: 3493bbe
9 years ago