Josh Berdine
74c8198826
[IR] Remove redundant struct_typ.name field
...
Summary:
It is no longer necessary to keep the name of a struct within the
struct, as the name will just have been used to look it up.
Reviewed By: cristianoc
Differential Revision: D3919355
fbshipit-source-id: ab65168
8 years ago
Josh Berdine
af51599e0f
[backend] Remove AttributesTable.get_tenv
...
Summary:
Pass the exe_env to checker cluster callbacks, and add it to the domain
extras for BoundedCallTree, and use the Exe_env instead of
AttributesTable to obtain the tenv.
Reviewed By: sblackshear
Differential Revision: D3921850
fbshipit-source-id: 9edf324
8 years ago
Josh Berdine
32d8036ebe
Unbreak build when no system ocaml installed
...
Summary:
If ocaml is not installed (or if homebrew has sandboxed it out), `opam
init` fails unless passed `--compiler`.
Reviewed By: sblackshear, jvillard
Differential Revision: D3927532
fbshipit-source-id: d2fbec9
8 years ago
Jeremy Dubreil
e38e16c948
[infer][java] Remove the deprecated genrule from the BUCK files
...
Reviewed By: jvillard
Differential Revision: D3929506
fbshipit-source-id: a01301c
8 years ago
Sam Blackshear
7da3a90c81
[buck] support continuing analysis after crash when --keep-going is passed
...
Reviewed By: jeremydubreil
Differential Revision: D3932892
fbshipit-source-id: f6a6d37
8 years ago
Ryan Rhee
967532ea2e
[componentkit][test] Rename test files
...
Reviewed By: dulmarod
Differential Revision: D3924307
fbshipit-source-id: 77ddfac
8 years ago
Ryan Rhee
df988dd051
[componentkit][test] Import proper fake header in second test
...
Reviewed By: dulmarod
Differential Revision: D3924245
fbshipit-source-id: 16a110a
8 years ago
Jeremy Dubreil
2e2e9c89d6
[infer][java] Removing the models for com.squareup.okhttp.internal.StrictLineReader
...
Reviewed By: dulmarod
Differential Revision: D3929501
fbshipit-source-id: 450f5bd
8 years ago
Jeremy Dubreil
168c613ac9
[infer][java] Separate the builtins from the other models for a better modularity
...
Summary: The Infer builtins can be used in the e2e tests, but those tests should not depend on the Infer models to avoid cyclic dependencies. This diff separates the models and the Infer builtins in two directories so that the test can depend on the builtins without depending on the models
Reviewed By: sblackshear
Differential Revision: D3929478
fbshipit-source-id: 7d0ab79
8 years ago
Martino Luca
051fbd779c
[Buck] Emit xml stub during `buck_test_xml` target
...
Reviewed By: jvillard
Differential Revision: D3930854
fbshipit-source-id: 17f8035
8 years ago
Jeremy Dubreil
d1da078ab7
[infer][java] Minor renaming in the Java frontend
...
Summary: Simple cleanup of the Java frontend, removing redundant code
Reviewed By: sblackshear
Differential Revision: D3929420
fbshipit-source-id: 29b6903
8 years ago
Sam Blackshear
3051d90307
[quandary] kill unused Source.to_return proc
...
Reviewed By: jvillard
Differential Revision: D3927750
fbshipit-source-id: a4047f4
8 years ago
Sam Blackshear
df8a4f6481
[quandary] tests for divergence
...
Reviewed By: dkgi
Differential Revision: D3871703
fbshipit-source-id: f11f21d
8 years ago
Sam Blackshear
af9f34bb60
[quandary] checking for flows from Intents parsed via Uris -> startActivity (and similar)
...
Reviewed By: mburman
Differential Revision: D3905877
fbshipit-source-id: 03fe2f6
8 years ago
Ryan Rhee
d6cf024c1b
[componentkit] Enable the MLV rule
...
Reviewed By: dulmarod
Differential Revision: D3911441
fbshipit-source-id: f41a6d6
8 years ago
Ryan Rhee
6475e358c4
[componentkit][const] Ignore NSError
...
Reviewed By: martinoluca
Differential Revision: D3912232
fbshipit-source-id: adc8a55
8 years ago
Ryan Rhee
7a434adea8
[componentkit][const] Whitelist certain classes
...
Reviewed By: martinoluca
Differential Revision: D3911399
fbshipit-source-id: c523779
8 years ago
Ryan Rhee
d2ac2242c4
[componentkit][test] typedef struct -> class
...
Reviewed By: dulmarod
Differential Revision: D3909628
fbshipit-source-id: 52e9539
8 years ago
Ryan Rhee
f54b84c751
[componentkit][test] Move mock CK imports to own .h file
...
Reviewed By: dulmarod
Differential Revision: D3909240
fbshipit-source-id: 66e8b71
8 years ago
Dulma Churchill
561f4fdfad
[linters] Adding a new type of procname that is used for lint bugs that are not in any method
...
Reviewed By: cristianoc
Differential Revision: D3913535
fbshipit-source-id: cb8f840
8 years ago
Cristiano Calcagno
717b61192e
[tests] Convert java harness and crashcontext tests to new direct format.
...
Summary:
Convert the last remaining tests to the new direct format: java harness and crashcontext.
Remove what is left of the old testing infrastructure.
Reviewed By: sblackshear
Differential Revision: D3886355
fbshipit-source-id: 5117868
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
8554c1e342
[Parallelization][Linters] Wait for processes based on the map of processes, to make sure that we waited for all the children.
...
Reviewed By: martinoluca, jberdine
Differential Revision: D3908272
fbshipit-source-id: a0c4671
8 years ago
Peter O'Hearn
419f2e0bdf
[infer] Active Variables
...
Reviewed By: sblackshear
Differential Revision: D3900838
fbshipit-source-id: bb58b20
8 years ago
Sam Blackshear
fbfece20af
[quandary] using exceptional procCFG to explore exceptional control-flow
...
Reviewed By: dkgi
Differential Revision: D3871621
fbshipit-source-id: e76a274
8 years ago
Sam Blackshear
f0a31f460b
[checkers] don't crash when a frontend temp is reassigned
...
Reviewed By: jeremydubreil
Differential Revision: D3867083
fbshipit-source-id: 8cd5cfe
8 years ago
Sam Blackshear
4b9899d6b2
[quandary] handling globals in function summaries
...
Reviewed By: jeremydubreil
Differential Revision: D3866616
fbshipit-source-id: 1b77bca
8 years ago
Sam Blackshear
b1039f51f8
[quandary] add summaries for footprint traces associated with locals
...
Differential Revision: D3883275
fbshipit-source-id: 651116e
8 years ago
Cristiano Calcagno
4cee6907ec
[backend] Remove the global reference DB.current_source and clean up the flow of information about the current source file.
...
Summary:
The global reference `DB.current_source` is used internally in the module DB, by all the front-ends, and directly and indirectly by the back-end, including saving and restoring the state in case of on-demand procedure calls. In particular, it is heavily used in printing functions.
This diff cleans up the flow of information about what the current file is, making it explicit, and removes the reference.
Reviewed By: jberdine
Differential Revision: D3901247
fbshipit-source-id: ef596bd
8 years ago
Dulma Churchill
526cf6da6a
[Config] Adding a default for the option load
...
Reviewed By: jberdine
Differential Revision: D3900257
fbshipit-source-id: c664968
8 years ago
Sam Blackshear
ae759ee21f
[quandary] fixing crashes when running on recursive code
...
Reviewed By: cristianoc
Differential Revision: D3888004
fbshipit-source-id: d432496
8 years ago
Sam Blackshear
de146f4f2d
[quandary] switch to using base -> formal num map in extras
...
Reviewed By: dkgi
Differential Revision: D3883256
fbshipit-source-id: 857e1f9
8 years ago
Sam Blackshear
31e6849ec0
[quandary] using summaries part 2: the relational cases
...
Differential Revision: D3861751
fbshipit-source-id: d7858e6
8 years ago
Jeremy Dubreil
acbb59c1f9
[infer][java] print an error message when using the option --reactive with Java buck projects
...
Summary: The reactive mode is not currently supported for Java Buck projects. Print a clear error message to avoid confusion. Using `--reactive` with Buck projects is crashing. When using reactive, the backend crashes because it tries to find the `.start` file in `infer-out` whereas Infer saves the analysis artifacts next to the generated classes following the `-d` options with Buck so that they can be cached. Pointing the backend to the right Infer out would not help as this directory will be blown up as soon as the files are modified.
Reviewed By: sblackshear
Differential Revision: D3901005
fbshipit-source-id: d8dcbce
8 years ago
Cristiano Calcagno
bd0215a826
[IR] Add notion of file captured to procedure attributes.
...
Reviewed By: jberdine
Differential Revision: D3899826
fbshipit-source-id: 91f063f
8 years ago
Josh Berdine
f30b6e39db
More robust logging to files
...
Summary:
Create the log directory even if the parent results directory does not
exist. In particular, the python buck module will delete the results
directory after it is created the first time, so it needs to be
re-created or else there is nowhere for the log files.
Reviewed By: sblackshear
Differential Revision: D3896546
fbshipit-source-id: 834cf79
8 years ago
Cristiano Calcagno
847c141912
[tests] Clean up test files shared between frontend and endtoend tests
...
Reviewed By: jberdine
Differential Revision: D3893900
fbshipit-source-id: 497effc
8 years ago
Sam Blackshear
70670f5355
[checkers] kill noisy logging in abstract interpreter
...
Reviewed By: jberdine
Differential Revision: D3896673
fbshipit-source-id: 35c20d5
8 years ago
Sam Blackshear
e4beca3779
[quandary] using summaries part 1: return
...
Reviewed By: jeremydubreil
Differential Revision: D3857310
fbshipit-source-id: 29c5994
8 years ago
Sam Blackshear
cf8c957483
[quandary] use preanalysis for abstract GC
...
Reviewed By: jeremydubreil
Differential Revision: D3866919
fbshipit-source-id: 87fb380
8 years ago
Josh Berdine
65a39c88b7
bump version: 0.9.2 -> 0.9.3
...
Reviewed By: cristianoc
Differential Revision: D3892772
fbshipit-source-id: cda9448
8 years ago
Cristiano Calcagno
c134eac91e
[tests] Convert objective-c frontend tests to new direct format
...
Reviewed By: jberdine
Differential Revision: D3886011
fbshipit-source-id: 2e0c014
8 years ago
Sam Blackshear
95f6639d6d
[backend] refactoring debug html printing to make it easier to call from anywhere
...
Reviewed By: jberdine
Differential Revision: D3876981
fbshipit-source-id: dcca010
8 years ago
Sam Blackshear
9f1c4e4bca
[quandary] adding append operation
...
Reviewed By: jeremydubreil
Differential Revision: D3857100
fbshipit-source-id: 030b1cb
8 years ago
Cristiano Calcagno
fe21442d47
[tests] Convert the linter tests to the new direct format
...
Reviewed By: jberdine
Differential Revision: D3877153
fbshipit-source-id: a0efb3c
8 years ago
Cristiano Calcagno
da01c2b94a
[tests] Fix detection of changes in frontend tests
...
Reviewed By: jberdine
Differential Revision: D3884466
fbshipit-source-id: 4ab17f3
8 years ago
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