Commit Graph

1731 Commits (355ab92130f73b7eef4ce2d2dc13cbd9f3b60649)

Author SHA1 Message Date
Josh Berdine f1c10738c5 Exclude autosave files from repl build 9 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 9 years ago
Sam Blackshear 27cfb141da richer sink specifications 9 years ago
Andrzej Kotulski 0817ab0ec2 Fix FCP_RUN_SYNTAX_ONLY variable 9 years ago
Josh Berdine 4706f25bf7 Normalize struct field types to be shallow 9 years ago
Josh Berdine 548338bb4e Move mk_struct to Tenv 9 years ago
Josh Berdine 30b3881e52 Make Typ.struct_typ private and add Typ.mk_struct 9 years ago
Josh Berdine ad31aeb2a2 Expand Tvar to Tstruct as needed 9 years ago
Sam Blackshear bcacd95176 tests for arrays 9 years ago
Sam Blackshear 30ff9eda22 fix type of array store 9 years ago
Lázaro Clapp Jiménez Labora 2f90dde351 Add top of file documentation for crashcontext.mli 9 years ago
Sam Blackshear 3368548e3e replace stackop instruction with skip instruction 9 years ago
Sam Blackshear 87248009b7 fixing issue where crashcontext breaks without -o 9 years ago
Josh Berdine f3cdf87181 Sort test results by file then line 9 years ago
Sam Blackshear e918624076 abducted -> abduced 9 years ago
Sam Blackshear 1e4b4df427 fixing handling of aliasing for frontend tmp vars 9 years ago
Sam Blackshear 6ca990be8c adding tests for manipulating fields 9 years ago
Cristiano Calcagno c613820a98 Convert c tests to the new testing format 9 years ago
Dulma Churchill e18381ab67 Fix compilation problem with buck compilation database and travis 9 years ago
Cristiano Calcagno 0b7ea202db Convert infer c++ tests to new format 9 years ago
Dulma Churchill ab70143e1b Do not analyze in linters mode 9 years ago
Sam Blackshear 8ab9a6c714 remove some commented logging code 9 years ago
Sam Blackshear f2487513c5 adding tests for basic var stuff, casts 9 years ago
Dulma Churchill f6636c6d41 Store the issue file only if there are issues 9 years ago
Dulma Churchill 6c4762b9de Remove compilation warning 9 years ago
Dulma Churchill 13de8a0835 Fix cpp models that got broken by an incorrect refactoring 9 years ago
Josh Berdine 8a85919001 Pass tenv to everywhere that matches on Tstruct 9 years ago
Josh Berdine 2bebd94553 Remove redundant Typ.struct_typ.csu field 9 years ago
Josh Berdine f0940f25d7 Replace optional mangled struct_name with typename 9 years ago
Josh Berdine 90314a4d94 Catch Unix exceptions in DB.create_dir 9 years ago
Dulma Churchill d11b2754a9 New buck integration based on the compilation database emitted by buck 9 years ago
Andrzej Kotulski 49950afe26 export __INFER__ macro when compiling code with infer 9 years ago
Sam Blackshear 3ff6622c9c setup e2e test skeleton 9 years ago
Sam Blackshear 91071af3ad logging errors 9 years ago
Sam Blackshear 50ac3cde41 command-line setup 9 years ago
Cristiano Calcagno 20c33f15c9 Fix flakiness in the analysis when a procedure is defined in more than one file. 9 years ago
Andrzej Kotulski be891e8413 Simplify builtin function detection during translation 9 years ago
Cristiano Calcagno 346d3e6d01 Address capture flakiness when a symbol is multiply defined. 9 years ago
Dulma Churchill 977f73ff5b Add column to json file of issues 9 years ago
Andrzej Kotulski 97fe6275bd Simplify language detection in frontend 9 years ago
Andrzej Kotulski ad325d5047 Drop ti_raw field from clang_ast_t.type_info 9 years ago
Andrzej Kotulski 21ecba2d17 move retain/release special handling to function_deref_trans 9 years ago
Andrzej Kotulski 7461d40024 Clean up special handling of smart pointers in backend 9 years ago
Andrzej Kotulski 2444618943 Translate functions coming from std headers od demand 9 years ago
Josh Berdine 8cacd31f85 Remove unused typedef and enum Typename's 9 years ago
Jules Villard 4fe1615434 give correct type to root exps of array dereferences 9 years ago
Andrzej Kotulski 41e51bc28c Clean up smart pointer header models 9 years ago
Andrzej Kotulski 4637bf877e model unique_ptr<T> as T* 9 years ago
Andrzej Kotulski 13dbaab446 Revert "[C++] Add hack to not use __make_integer_seq in fatal/type/sequence library" 9 years ago
Cristiano Calcagno 257f4976f0 Convert java tracing tests to new direct format. 9 years ago
Cristiano Calcagno 674f30de2c Convert java infer tests to the new direct format 9 years ago
Jules Villard 0caa7e1826 move printing module to its own file 9 years ago
Martino Luca 9e3b3c5d77 Fix C++ tests 9 years ago
Josh Berdine 377d284cf2 Simplify originator detection 9 years ago
Sam Blackshear 15b6a8cdd7 killing a bunch of options by using optional argument types correctly 9 years ago
Martino Luca 80c82c0cae Adapt Infer to the new changes introduced by the upgrade to Clang 4.0 9 years ago
Jules Villard a6bf43a570 replace boolean by named argument in Inteproc.propagate 9 years ago
Cristiano Calcagno 2cb595b8c9 Convert Eradicate and Checkers tests to direct format. 9 years ago
Andrzej Kotulski 4cd9470586 Skip Sil.Call instruction for some shared_ptr method calls 9 years ago
Andrzej Kotulski 2baf3f8456 Replace shared_ptr<T> structs with T* pointers 9 years ago
Sam Blackshear a92543b67c fix needless type extension 9 years ago
Lázaro Clapp Jiménez Labora f2e958ef3a Add support for multiple stacktraces in '-a crashcontext' 9 years ago
Sam Blackshear a31a735e35 separate pretty-printer for pp_kind 9 years ago
Andrzej Kotulski 5d3a15fd9c Fix roots with new names for InferPrint and InferAnalyze 9 years ago
Ryan Rhee e19550a43b Handle l-value refs correctly 9 years ago
Sam Blackshear 36b0a957bd setup for creating very simple absint checkers 9 years ago
Sam Blackshear 89fa74bc9b make @OnBind an alias for @NoAllocation 9 years ago
Sam Blackshear c5088f44a7 adding tests for context leaks via weak reference 9 years ago
Sam Blackshear f64e880c11 java traces 9 years ago
Dulma Churchill 6ad78e7d9c Add case for blocks when building a procname 9 years ago
Cristiano Calcagno a6254f6b73 Extend Inferprint with a command --issues-tests to print issues in a format suitable for tests 9 years ago
Andrzej Kotulski a31c5416b1 Add basic support for starting ocaml repl with infer code 9 years ago
Jules Villard c2ca6a23d5 pass -l to infer.py 9 years ago
Dulma Churchill 9ae19d01d0 Make the is_global_var not fire for the static local variables 9 years ago
Cristiano Calcagno ed8d112e87 Convert Inferprint and Inferanalyze to Reason 9 years ago
Jules Villard 26a6594b90 detect unsigned values inside structured expressions 9 years ago
Martino Luca 7de52e7649 Check early whether the given decl has to be checked with linters or not 9 years ago
Jules Villard e1f19192c0 move --fail-on-issue functionality to OCaml 9 years ago
Cristiano Calcagno 91d9cd83b5 Cleanup instruction names: use Load/Store instead of Letderef/Set. 9 years ago
Cristiano Calcagno c0969da619 Remove unused module CodeQuery. 9 years ago
Sam Blackshear 262a121cf6 handle casts 9 years ago
Sam Blackshear 514107ec88 track sinks 9 years ago
Sam Blackshear f0028669ee propagate tainted sources 9 years ago
Andrzej Kotulski 761579469e Revert "[C++] Move models of smart pointers to custom namespace" 9 years ago
Jules Villard 3f60f54fbf align --help and support -h 9 years ago
Dulma Churchill 07bf714d91 Put current method in context 9 years ago
Jules Villard 2da8940a80 test that running infer deletes the previous infer-out folder 9 years ago
Jules Villard 4e2cc84bcb compile *.java files only 9 years ago
Cristiano Calcagno 6221956149 Apply type resolution to qualify fields and variants in Prop. 9 years ago
Sam Blackshear 3b12208e1b intraprocedural taint analysis that records sources 9 years ago
Jules Villard dda4921786 exit with correct error code when infer.py fails 9 years ago
Sam Blackshear 90c8f55c32 adding missing functionality to analyzerTester 9 years ago
Sam Blackshear e853b01051 taint domain 9 years ago
Sam Blackshear 20584be8f3 mapping of ids to raw access path 9 years ago
Jules Villard 0add05de87 do not print infer.py usage message on wrong arguments 9 years ago
Jules Villard 145cb744f6 do not havoc actuals of skip functions with const parameters 9 years ago
Jules Villard 7603395ee9 qual_type fields are namespaced now 9 years ago
Dulma Churchill b7ec110ea3 Adding new mode linters 9 years ago
Dulma Churchill 3d39fba622 Refactor InferPrint and store the lint issues in a serialized data structure that InferPrint picks up and prints. 9 years ago
Andrzej Kotulski 121c968e77 Move models of smart pointers to custom namespace 9 years ago
Jules Villard 49adf59332 do not crash when setting locale fails 9 years ago
Martino Luca 40b176fd01 Translate global const vars locally to a procedure 9 years ago
Martino Luca 6840efdd1c fix imports in MutableLocalVariableTest 9 years ago
Sam Blackshear c2043af70d functor for creating trace domain 9 years ago
Sam Blackshear 462bf68f46 killing is_bottom 9 years ago
Sam Blackshear f99b30c4cd abstracting passthroughs more aggressively 9 years ago
Lázaro Clapp Jiménez Labora 175efddc2b Make stacktrace and stacktree line number an int option. 9 years ago
Lázaro Clapp Jiménez Labora 616e8fddd4 Make stacktrace parsing work when line number info is not available. 9 years ago
Ryan Rhee e81e43456b Test mutable local variables in CK files 9 years ago
Ryan Rhee 957bdde05e Test that component kit headers skips imported headers 9 years ago
Ryan Rhee a134669f73 Make issues warnings again 9 years ago
Raghavendra Prabhu d9699264e0 Fixes/updates to build on linux. 9 years ago
Ryan Rhee d594a525ac Test that CK rules don't fire in non-component files 9 years ago
Ryan Rhee da771ac5aa Mutable local vars 9 years ago
Ryan Rhee 8a40482fac Detect when in CK 9 years ago
Ryan Rhee 88897addfa Add in_main_file to context 9 years ago
Sam Blackshear 8f5542ed2f functor for creating traces from source and sink specs 9 years ago
Sam Blackshear 36e2175293 trace building blocks: sources and sinks 9 years ago
Andrzej Kotulski 185f6493bc Update fcp with new naming fixes 9 years ago
Martino Luca 3dae9dc4f6 Use Guava's Optional in tests 9 years ago
Ryan Rhee 5a8eb19041 Comment formatting for cFrontend_utils.mli 9 years ago
Ryan Rhee 70d5b604bf Split get_super into get_super_impl and get_super_if 9 years ago
Jules Villard cdce8f9794 better help 9 years ago
Ryan Rhee 894e92d4f3 Fix comment formatting for linter context 9 years ago
Ryan Rhee 3d719a24d9 Matcher w/ explicit error name 9 years ago
Ryan Rhee 6e6a7a8e5a Add is_ck_translation_unit to context 9 years ago
Cristiano Calcagno 66385dd5f4 Refactor module Prop by moving normalization functions into module Normalize. 9 years ago
Ryan Rhee e2ff6e58a5 `buck test componentkit` boilerplate 9 years ago
Cristiano Calcagno b48ec1ac93 Clean up API to access components of propositions. 9 years ago
Cristiano Calcagno 89270c558c Add module Core in Prop to make transitions between exposed and normalized explicit. 9 years ago
Sam Blackshear 034d2e3c81 adding accessTree.fold 9 years ago
Jules Villard 3b3f587652 update fcp to have qualifiers in ValueDecl types 9 years ago
Ryan Rhee 4a6202c772 Move get_super to utils 9 years ago
Josh Berdine a9a38f20ec Simplify normalization in Attribute.remove 9 years ago
Josh Berdine 3896b10265 Move Prop.Attribute to toplevel 9 years ago
Josh Berdine 60496f2ae4 Minor cleanup of Prop.Attributes interface 9 years ago
Josh Berdine 4053d24bed Refactor Prop ops on attributes into sub-module 9 years ago
Martino Luca b7d70ff178 Add support for extra cases of BAD_POINTER_COMPARISON warning 9 years ago
Josh Berdine 6555a84409 Make warning 23 (Useless record with clause) fatal 9 years ago
Josh Berdine c147ab4197 Refactor Sil.attribute and associates to PredSymb 9 years ago
Josh Berdine 25a52c7bbc Refactor operations on Exp.t in Sil to Exp 9 years ago
Josh Berdine 8a90190309 Remove dead Sil.binop_invert 9 years ago
Josh Berdine f9ca08a9a8 Refactor Exp.t-keyed collections from Sil to Exp 9 years ago
Josh Berdine d60965824e Refactor exp_equal and exp_compare to Exp 9 years ago
Josh Berdine 701eb20f83 Refactor Sil.exp to Exp.t 9 years ago
Josh Berdine 6ffe204252 Make Aobjc_null attribute a binary predicate 9 years ago
Josh Berdine 4185bda8ba Generalize predicates from unary to nary 9 years ago
Josh Berdine b6544eace7 Remove redundant normalization 9 years ago
Josh Berdine c2f62f3a97 Remove tuple type redundant with atom 9 years ago
Josh Berdine a8ce65b221 Encode polarity of predicates into atom tag 9 years ago
Josh Berdine b09b28f10f Add negated attributes, with 2-valued semantics 9 years ago
Josh Berdine 71a15b2388 Represent attributes with atoms, not disequalities 9 years ago
Martino Luca e3132152cb Check for the presence of removeObserver into class hierarchy 9 years ago
Lázaro Clapp Jiménez Labora d23c99a4ea Add blame_range to crashcontext analysis. 9 years ago
Sam Blackshear 8ff9f2afab making get_reachable_hpreds understand inductive predicates 9 years ago
Vaibhav Tulsyan dba179845b Minor typo fix 9 years ago
Josh Berdine 06cbdfa651 Cosmetic changes to improve Reason conversion 9 years ago
Josh Berdine fe780cb6ff Move comments to improve attachment 9 years ago
Josh Berdine 32146523ca Enable warning: Unexpected documentation comment 9 years ago
Ryan Rhee d2a4028881 Call decl checkers on DeclStmt statements 9 years ago
Lázaro Clapp Jiménez Labora 7c3110b76f Extract stacktrace.ml regexp constructors to module level. 9 years ago
Lázaro Clapp Jiménez Labora 751d027f8d Remove 'open Jsonbug_t' scope clutter. 9 years ago
Lázaro Clapp Jiménez Labora 85add041d4 CI Tests for crashcontext handling of native methods 9 years ago
Lázaro Clapp Jiménez Labora 5296688c1f Match classname for stackframes in crashcontext checker. 9 years ago
Lázaro Clapp Jiménez Labora 0a8b95a856 Crashcontext ocaml method summary merging 9 years ago
Lázaro Clapp Jiménez Labora d5848d8c94 Add parsing of native methods on the stacktrace. 9 years ago
Lázaro Clapp Jiménez Labora 58d008a026 Add Stacktree ATD type for serializing/decerializing crashcontext results. 9 years ago
Lázaro Clapp Jiménez Labora ed85a129f5 Add DB.paths_matching utility method to recursively search files under a directory matching a function f. 9 years ago
Josh Berdine 3064caacdb Remove stale Autounit module 9 years ago
Martino Luca bed9b31c62 Add general context to linters framework to implement smarter checks 9 years ago
Jules Villard aee1eeba3d restore --pmd-xml functionality 9 years ago
Martino Luca f64be4596b Implement containsOnlyLines matcher for tests 9 years ago
Zac Sweers aed5e6bee8 Support butter knife 8's BindView annotation 9 years ago
Sam Blackshear 0a747b8eb2 fixing some of the issues with passing classpath in a file 9 years ago
Sam Blackshear 3233666b11 extract callsite to its own module 9 years ago
Sam Blackshear ed9495a893 delete unused class-to-source mapper processor 9 years ago
Dulma Churchill 8d279748fa Adding a key to the lint issues 9 years ago
Martino Luca da2717ff2a Migrate BAD_POINTER_COMPARISON check from backend to linters infra 9 years ago
Martino Luca adb0ef8a78 Alphabetize CIssue 9 years ago
Dulma Churchill ff597a6c03 Model init method in NSData and understand the field bytes 9 years ago
Sam Blackshear 4490d9b033 fix recognition of inner class this guarded-by strings 9 years ago
Dulma Churchill fa8ae3e5e9 In the new framework where we go through every declaration we don't need a special case for properties anymore 9 years ago
Daiva Naudziuniene ac9cabe677 Fixing Memory leak false positives in C++/ObjC 9 years ago
Lázaro Clapp Jiménez Labora 9a79e74380 Crashbot results stitching and end-to-end testing. 9 years ago
Sam Blackshear 33b417c280 generalizing `add_trace` to `add_node` 9 years ago
Sam Blackshear 706acdfd9e generalizing get_trace to get_node 9 years ago
Sam Blackshear b500a5c4b5 don't warn in cases where GuardedBy string is clearly unrecognizable 9 years ago
Sam Blackshear e9aecd0afe widen for access trees 9 years ago
Jules Villard 01ffc387bb resolve symlinks recursively until the real infer executable is found 9 years ago
Lázaro Clapp Jiménez Labora 76764c148a Output the callee sumaries of -a crashcontext to per-method files. 9 years ago
Lázaro Clapp Jiménez Labora cbd1b9c7ba Refactor common code on multiple methods of InferRestults 9 years ago
Sam Blackshear 6a1a0d68da create access paths from expressions 9 years ago
Jules Villard 10f10a90c6 diverge on `throw` 9 years ago
Jules Villard fb7aed07c6 typo and whitespace cleanup in cFrontend_config 9 years ago
Lázaro Clapp Jiménez Labora 6469a6c37b Implement '-a crashcontext' and '-st trace' options to invoke BoundedCallTree.ml from the command line. 9 years ago
Dulma Churchill 7fd1149f85 Add NPE check for weak variables captured in blocks 9 years ago
Andrzej Kotulski 0aa5101a05 Replace space with _ in type names 9 years ago
Andrzej Kotulski 5ed50f5a97 Keep more precise information in constructor's var_exp_typ 9 years ago
Dulma Churchill 102f61e2a7 Move a few missing tests to the new location 9 years ago
Andrzej Kotulski ed3470c30e unify handling of many special cases in callExpr_trans 9 years ago
Dulma Churchill fb607ef388 Use the block captured variables as mangled 9 years ago
Jules Villard 4078a2b276 pass down --reactive and --continue to python 9 years ago
Jules Villard 354e4c0391 fail when clang -### <args> returns nothing 9 years ago
Daiva Naudziuniene dfb7c15303 Fixing Resource leak false positives assuming developers use raii. 9 years ago
Jules Villard 9378913223 add constructor info to c++ methods 9 years ago
Sam Blackshear e95ebca786 factoring out some utility methods for testing access-based stuff 9 years ago
Lázaro Clapp Jiménez Labora 9f7cb87bb0 Add stacktrace extras to BoundedCallTree checker. 9 years ago
Sam Blackshear 0ca19da3cf allowing custom procname in analyzerTester 9 years ago
Sam Blackshear a33e047377 allow access path base to be an ident as well 9 years ago
Lázaro Clapp Jiménez Labora d4a9a6cde1 Add initial stack trace parsing code for semantic blame 9 years ago
Sam Blackshear d6149c7741 switching to by-ref semantics 9 years ago
Jules Villard ba75de4b79 skip gcc-specific flag -fno-canonical-system-headers 9 years ago
Martino Luca f0fffd3c59 Add `dotty` field constant 9 years ago
Martino Luca 062ec6c872 Translate VAArgExpr 9 years ago
Martino Luca 4ba864780e Translate OffsetOfExpr 9 years ago
Andrzej Kotulski f40033fc5f Update fcp 9 years ago
Dulma Churchill 62da495510 Start transitioning logging of frontend bugs into a map of errlogs rather than in procdescs 9 years ago
Andrzej Kotulski b8044c6b65 Use mangled names instead of function type for mangling 9 years ago
Sam Blackshear d946a7bc33 fix ugly printing of NONE idents 9 years ago
Sam Blackshear 27fa745cee using more general version of join_all_traces 9 years ago
Sam Blackshear 16b31acfc9 add_trace function for access tree + tests 9 years ago
Andrzej Kotulski e61b6fe719 Use pointers to decls instead of class names when creating a type 9 years ago
Lázaro Clapp Jiménez Labora b9a5a3b5ad Add initial version (k=1, undirected) of the bounder calltree analysis checker for the Semantic Blame project 9 years ago
Sam Blackshear e94fc21410 deleting stacktrace 9 years ago
Dulma Churchill 8b0b485921 Refactoring of tests, separating the tests for linters 9 years ago
Dulma Churchill 41d93dd889 Model numberWithUnsignedInteger, skipping it was creating a false positive NPE 9 years ago
Andrzej Kotulski 118295e03c Fix C++ models of c library 9 years ago
Dulma Churchill 1617d470f1 Creating a specific type for frontend issues 9 years ago
Josh Berdine e8fd648fe8 Fix mod_dep for reason conversion, add mod_dep.pdf 9 years ago
Dulma Churchill b9384aab2e Make the toplevel aware of the new error kind advice 9 years ago
Dulma Churchill 694ded4795 Make the description of issues specify the error kind 9 years ago
Sam Blackshear 09e45710d3 join for access trees and tests 9 years ago
Josh Berdine e739b0e6ea Refactor Sil.dexp into separate DecompExp module 9 years ago
Josh Berdine ccd32690d7 Refactor Sil.call_flags into separate CallFlags module 9 years ago
Josh Berdine eefe05b240 Refactor Sil.Subtype into separate Subtype module 9 years ago
Josh Berdine aba67b4a2a Refactor Sil.binop into separate Binop module 9 years ago
Josh Berdine 2154c2c483 Refactor Sil.unop into separate Unop module 9 years ago
Josh Berdine 9487cab145 Refactor Sil.const into separate Const module 9 years ago
Josh Berdine 54403206fd Eliminate unnecessary recursion for strexp type 9 years ago
Josh Berdine e62bfb44a3 Eliminate unnecessary recursion for dexp type 9 years ago
Josh Berdine fba137e9ef Eliminate unnecessary recursion for const type 9 years ago
Josh Berdine a1b680c473 Move attributes from const to exp 9 years ago
Josh Berdine a379729e1f Use Prop.atom_negate in Rearrange 9 years ago
Josh Berdine 5f309ebb23 Tighten type of Aobjc_null to reduce recursion 9 years ago
Josh Berdine 32d09545e2 Closure values are not constants 9 years ago
Josh Berdine c5ce74f3d3 Exception values are not constants 9 years ago
Sam Blackshear b2c422827a adding <=, tests to access tree domain 9 years ago
Sam Blackshear 05505b55fd beginnings of access tree domain, tests 9 years ago
Sam Blackshear 15534be574 eliminate tmp vars in resource leak error message 9 years ago
Andrzej Kotulski f313cf2a82 Add hack to not use __make_integer_seq in fatal/type/sequence library 9 years ago