Sam Blackshear
b34a23c1b4
[java frontend] fix read of unused id in exception translation.
...
Reviewed By: jeremydubreil
Differential Revision: D3870333
fbshipit-source-id: 2bddd67
8 years ago
Sam Blackshear
4172650313
[java] treat CatchVar's emitted by Sawja as temporary variables
...
Reviewed By: cristianoc
Differential Revision: D3871548
fbshipit-source-id: 32274ef
8 years ago
Sam Blackshear
2f34e998c2
[quandary] consider builtins to be neither sources nor sinks
...
Reviewed By: jeremydubreil
Differential Revision: D3861787
fbshipit-source-id: 3eb8516
8 years ago
Cristiano Calcagno
b0980bc35e
[tests] Convert c/c++ frontend tests to new format.
...
Reviewed By: sblackshear
Differential Revision: D3876214
fbshipit-source-id: a9032dc
8 years ago
Cristiano Calcagno
25cd7dbe89
[tests] Activate objective-c tests in the new format, and remove old junit tests.
...
Reviewed By: dulmarod
Differential Revision: D3876176
fbshipit-source-id: e6cc634
8 years ago
Cristiano Calcagno
afebcdad60
[tests] Prepare objective-c tests for conversion to the new direct testing format
...
Summary:
Rename symbols in test files so they are not duplicated and files can be analyzed together without affecting analysis results.
Fix some compilation errors, where files could be analyzed but would fail direct compilation.
Add Makefile mimicking the same analysis parameters used for the existing tests.
Reviewed By: dulmarod
Differential Revision: D3869993
fbshipit-source-id: 6db1baf
8 years ago
Cristiano Calcagno
ec67521c6f
[backend] Fix issue where the attribute of a procedure definition could be overwritten with the attribute of a declaration
...
Reviewed By: sblackshear
Differential Revision: D3856374
fbshipit-source-id: a8a0a52
8 years ago
Josh Berdine
8589dc4868
Remove Tstruct in favor of Tvar
...
Summary:
This diff removes the redundancy in the representation of types where
struct types could be represented either directly using Tstruct or
indirectly using Tvar to refer to the type environment. A consequence
is that it is much harder to construct large type values.
Reviewed By: sblackshear, cristianoc
Differential Revision: D3839753
fbshipit-source-id: cf04ea5
8 years ago
Jeremy Dubreil
050d90b356
[infer][java] No longer disable the Buck daemon before running the anslysis
...
Summary: We no longer need to disable the Buck daemon since we not pass the path to the compiler via the option `--config` instead of modifying the .buckconfig.local file
Reviewed By: sblackshear
Differential Revision: D3854109
fbshipit-source-id: 1126159
8 years ago
Sam Blackshear
41c121bebf
[quandary] adding quandary summaries to specs
...
Reviewed By: jeremydubreil
Differential Revision: D3851178
fbshipit-source-id: 8a17357
8 years ago
Sam Blackshear
d6d7293633
[quandary] moving logging of errors into analysis
...
Reviewed By: jeremydubreil
Differential Revision: D3850807
fbshipit-source-id: d34f1ab
8 years ago
Sam Blackshear
31435fa936
[quandary] summaries for interprocedural analysis
...
Reviewed By: mbouaziz
Differential Revision: D3838659
fbshipit-source-id: 2382a81
8 years ago
Sam Blackshear
4f8370e524
[utils] add find_mapi_opt utility
...
Reviewed By: jeremydubreil
Differential Revision: D3851678
fbshipit-source-id: dcf1c6d
8 years ago
Sam Blackshear
ef8b215ee1
[utils] add fold_left_i utility
...
Reviewed By: jeremydubreil
Differential Revision: D3851332
fbshipit-source-id: a5649e7
8 years ago
Sam Blackshear
55a46d1211
[quandary] format for summaries
...
Reviewed By: mbouaziz
Differential Revision: D3838520
fbshipit-source-id: 7cd8bcb
8 years ago
Josh Berdine
f1c10738c5
Exclude autosave files from repl build
...
Reviewed By: akotulski
Differential Revision: D3837333
fbshipit-source-id: a046d49
8 years ago
Dulma Churchill
1e59512b41
Add InferBuckCompilationDatabase to the installation
...
Reviewed By: akotulski
Differential Revision: D3841381
fbshipit-source-id: 7d81d4d
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
Sam Blackshear
27cfb141da
richer sink specifications
...
Reviewed By: jeremydubreil
Differential Revision: D3831688
fbshipit-source-id: 199f1a5
8 years ago
Andrzej Kotulski
0817ab0ec2
Fix FCP_RUN_SYNTAX_ONLY variable
...
Summary: When we switched scripts to run `-cc1` commands coming from `-###` invocation we broke passing `-fsyntax-only` argument.
Reviewed By: jberdine
Differential Revision: D3835751
fbshipit-source-id: a742db4
8 years ago
Jeremy Dubreil
5a49755690
Reason is automatically installed with the right version by build-infer.sh
...
Reviewed By: sblackshear
Differential Revision: D3832961
fbshipit-source-id: c90b53d
8 years ago
Josh Berdine
4706f25bf7
Normalize struct field types to be shallow
...
Reviewed By: cristianoc
Differential Revision: D3791867
fbshipit-source-id: 3f115b1
8 years ago
Josh Berdine
548338bb4e
Move mk_struct to Tenv
...
Summary:
Rename Typ.mk_struct to internal_mk_struct, and add Tenv.mk_struct that
ensures types are added to the environment under the right name.
Reviewed By: cristianoc
Differential Revision: D3791865
fbshipit-source-id: fd4b667
8 years ago
Josh Berdine
30b3881e52
Make Typ.struct_typ private and add Typ.mk_struct
...
Reviewed By: cristianoc
Differential Revision: D3791863
fbshipit-source-id: d792aea
8 years ago
Josh Berdine
ad31aeb2a2
Expand Tvar to Tstruct as needed
...
Reviewed By: cristianoc
Differential Revision: D3809096
fbshipit-source-id: 7a8d2ac
8 years ago
Sam Blackshear
bcacd95176
tests for arrays
...
Reviewed By: jeremydubreil
Differential Revision: D3826552
fbshipit-source-id: 3b98b76
8 years ago
Sam Blackshear
30ff9eda22
fix type of array store
...
Reviewed By: jeremydubreil
Differential Revision: D3826437
fbshipit-source-id: b36e093
8 years ago
Lázaro Clapp Jiménez Labora
2f90dde351
Add top of file documentation for crashcontext.mli
...
Reviewed By: jeremydubreil
Differential Revision: D3826480
fbshipit-source-id: fa17ae5
8 years ago
Sam Blackshear
3368548e3e
replace stackop instruction with skip instruction
...
Reviewed By: cristianoc
Differential Revision: D3828544
fbshipit-source-id: 5a1d05f
8 years ago
Sam Blackshear
87248009b7
fixing issue where crashcontext breaks without -o
...
Reviewed By: lazaroclapp
Differential Revision: D3823554
fbshipit-source-id: 8c0b329
8 years ago
Josh Berdine
f3cdf87181
Sort test results by file then line
...
Summary:
For tests that have reports of the form `<file>:<line>*`, sort first by
file, then by line numerically.
Reviewed By: sblackshear
Differential Revision: D3828044
fbshipit-source-id: d10cffe
8 years ago
Sam Blackshear
e918624076
abducted -> abduced
...
Reviewed By: jeremydubreil
Differential Revision: D3828585
fbshipit-source-id: b76b256
8 years ago
Sam Blackshear
1e4b4df427
fixing handling of aliasing for frontend tmp vars
...
Reviewed By: cristianoc
Differential Revision: D3824558
fbshipit-source-id: 624df00
8 years ago
Sam Blackshear
6ca990be8c
adding tests for manipulating fields
...
Reviewed By: cristianoc
Differential Revision: D3824276
fbshipit-source-id: c412f17
8 years ago
Cristiano Calcagno
c613820a98
Convert c tests to the new testing format
...
Reviewed By: jberdine, sblackshear
Differential Revision: D3827953
fbshipit-source-id: 53a47df
8 years ago
Dulma Churchill
e18381ab67
Fix compilation problem with buck compilation database and travis
...
Reviewed By: akotulski
Differential Revision: D3827599
fbshipit-source-id: 8fc70db
8 years ago
Cristiano Calcagno
0b7ea202db
Convert infer c++ tests to new format
...
Reviewed By: jberdine
Differential Revision: D3803636
fbshipit-source-id: 5cc201d
8 years ago
Dulma Churchill
ab70143e1b
Do not analyze in linters mode
...
Reviewed By: jberdine
Differential Revision: D3819515
fbshipit-source-id: 993cb58
8 years ago
Sam Blackshear
8ab9a6c714
remove some commented logging code
...
Reviewed By: jeremydubreil
Differential Revision: D3822731
fbshipit-source-id: b6f5849
8 years ago
Sam Blackshear
f2487513c5
adding tests for basic var stuff, casts
...
Reviewed By: jberdine
Differential Revision: D3811191
fbshipit-source-id: 9d967f2
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
Dulma Churchill
6c4762b9de
Remove compilation warning
...
Reviewed By: jberdine
Differential Revision: D3821408
fbshipit-source-id: ec41f6c
8 years ago
Dulma Churchill
13de8a0835
Fix cpp models that got broken by an incorrect refactoring
...
Reviewed By: jberdine
Differential Revision: D3819759
fbshipit-source-id: aa577dc
8 years ago
Josh Berdine
8a85919001
Pass tenv to everywhere that matches on Tstruct
...
Reviewed By: cristianoc
Differential Revision: D3809094
fbshipit-source-id: b3a8449
8 years ago
Josh Berdine
2bebd94553
Remove redundant Typ.struct_typ.csu field
...
Summary:
The Typ.struct_typ.csu field is now redundant with the Csu.t in the
name: Typename.t field.
Reviewed By: cristianoc
Differential Revision: D3791861
fbshipit-source-id: 5370885
8 years ago
Josh Berdine
f0940f25d7
Replace optional mangled struct_name with typename
...
Summary: Replace the struct_name: Mangled.t option field of Typ.struct_typ with name: Typename.t
Reviewed By: sblackshear
Differential Revision: D3791860
fbshipit-source-id: 3ee1d00
8 years ago
Josh Berdine
90314a4d94
Catch Unix exceptions in DB.create_dir
...
Reviewed By: sblackshear
Differential Revision: D3811332
fbshipit-source-id: f05de5d
8 years ago
Dulma Churchill
d11b2754a9
New buck integration based on the compilation database emitted by buck
...
Reviewed By: jberdine
Differential Revision: D3791413
fbshipit-source-id: 8e57aa7
8 years ago
Andrzej Kotulski
49950afe26
export __INFER__ macro when compiling code with infer
...
Reviewed By: cristianoc
Differential Revision: D3811693
fbshipit-source-id: 4282c0d
8 years ago
Sam Blackshear
3ff6622c9c
setup e2e test skeleton
...
Reviewed By: cristianoc
Differential Revision: D3806745
fbshipit-source-id: c73e5cb
8 years ago