534 Commits (ccb51912e128f1834db8f4e1d83b51cb7d61d8f6)

Author SHA1 Message Date
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
Dulma Churchill f6636c6d41 Store the issue file only if there are issues
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
Andrzej Kotulski be891e8413 Simplify builtin function detection during translation
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 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 0caa7e1826 move printing module to its own file
9 years ago
Martino Luca 9e3b3c5d77 Fix C++ tests
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
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
Ryan Rhee e19550a43b Handle l-value refs correctly
9 years ago
Dulma Churchill 6ad78e7d9c Add case for blocks when building a procname
9 years ago
Dulma Churchill 9ae19d01d0 Make the is_global_var not fire for the static local variables
9 years ago
Martino Luca 7de52e7649 Check early whether the given decl has to be checked with linters or not
9 years ago
Cristiano Calcagno 91d9cd83b5 Cleanup instruction names: use Load/Store instead of Letderef/Set.
9 years ago
Dulma Churchill 07bf714d91 Put current method in context
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
Martino Luca 40b176fd01 Translate global const vars locally to a procedure
9 years ago
Ryan Rhee a134669f73 Make issues warnings again
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
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
Ryan Rhee 894e92d4f3 Fix comment formatting for linter context
9 years ago
Ryan Rhee 6e6a7a8e5a Add is_ck_translation_unit to context
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
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 d60965824e Refactor exp_equal and exp_compare to Exp
9 years ago
Josh Berdine 701eb20f83 Refactor Sil.exp to Exp.t
9 years ago
Martino Luca e3132152cb Check for the presence of removeObserver into class hierarchy
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
Martino Luca bed9b31c62 Add general context to linters framework to implement smarter checks
9 years ago
Dulma Churchill 8d279748fa Adding a key to the lint issues
10 years ago
Martino Luca da2717ff2a Migrate BAD_POINTER_COMPARISON check from backend to linters infra
10 years ago
Martino Luca adb0ef8a78 Alphabetize CIssue
10 years ago
Dulma Churchill ff597a6c03 Model init method in NSData and understand the field bytes
10 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
10 years ago
Jules Villard 10f10a90c6 diverge on `throw`
10 years ago
Jules Villard fb7aed07c6 typo and whitespace cleanup in cFrontend_config
10 years ago
Andrzej Kotulski 0aa5101a05 Replace space with _ in type names
10 years ago
Andrzej Kotulski 5ed50f5a97 Keep more precise information in constructor's var_exp_typ
10 years ago
Andrzej Kotulski ed3470c30e unify handling of many special cases in callExpr_trans
10 years ago
Dulma Churchill fb607ef388 Use the block captured variables as mangled
10 years ago
Jules Villard 9378913223 add constructor info to c++ methods
10 years ago
Martino Luca 062ec6c872 Translate VAArgExpr
10 years ago
Martino Luca 4ba864780e Translate OffsetOfExpr
10 years ago
Andrzej Kotulski f40033fc5f Update fcp
10 years ago
Dulma Churchill 62da495510 Start transitioning logging of frontend bugs into a map of errlogs rather than in procdescs
10 years ago
Andrzej Kotulski b8044c6b65 Use mangled names instead of function type for mangling
10 years ago
Andrzej Kotulski e61b6fe719 Use pointers to decls instead of class names when creating a type
10 years ago
Andrzej Kotulski 118295e03c Fix C++ models of c library
10 years ago
Dulma Churchill 1617d470f1 Creating a specific type for frontend issues
10 years ago
Dulma Churchill 694ded4795 Make the description of issues specify the error kind
10 years ago
Josh Berdine ccd32690d7 Refactor Sil.call_flags into separate CallFlags module
10 years ago
Josh Berdine eefe05b240 Refactor Sil.Subtype into separate Subtype module
10 years ago
Josh Berdine aba67b4a2a Refactor Sil.binop into separate Binop module
10 years ago
Josh Berdine 2154c2c483 Refactor Sil.unop into separate Unop module
10 years ago
Josh Berdine 9487cab145 Refactor Sil.const into separate Const module
10 years ago
Josh Berdine 32d09545e2 Closure values are not constants
10 years ago
Dulma Churchill 0253608fab Separate the flow of the frontend checks form the translation
10 years ago
Sam Blackshear 7b58c71475 centralize creation and detection of clang tmp vars, fix errdesc/bucketing
10 years ago
Dulma Churchill bcb1422a9a Implement direct atomic var check with the new ivar to property map
10 years ago
Andrzej Kotulski 046654a9c0 Fix translation of unary operator! for all integral types
10 years ago
Dulma Churchill 6ac4db7113 Change the check CXX_REFERENCE_CAPTURED_IN_OBJC_BLOCK to use only the clang ast
10 years ago
Sam Blackshear 006bd06adb add concept of a dummy identifier
10 years ago
Andrzej Kotulski 9b07a3e762 Never call destructor on delete expression
10 years ago
Andrzej Kotulski 1f089d0e4b update fcp commit
10 years ago
Andrzej Kotulski e46cddb52b Use mangling in function parameters to encode its position
10 years ago
Dulma Churchill c06795e631 Fixing the treatment of annotations in the clang frontend
10 years ago
Dulma Churchill edc57f70f5 Translate CXXNoexceptExpr
10 years ago
Dulma Churchill 8bfa983716 Translate TypeTraitExpr
10 years ago
Dulma Churchill 52e037f77c Translate AttributedStmt and Fallthrough attribute
10 years ago
Dulma Churchill 7f3e99c3d4 Fix assert false when calling zero_value_of_numerical_type
10 years ago
Andrzej Kotulski 14f5f6b8e4 Update clang and raise buffer size
10 years ago
Andrzej Kotulski 4d90ef99f0 Fix custom type_ptr to char* and char
10 years ago
Josh Berdine bbec166174 Refactor Sil.typ into separate Typ module
10 years ago
Josh Berdine a6a766b5f5 Refactor Sil.Int into separate IntLit module
10 years ago
Josh Berdine 229ca26c8b Optimize normalization, substitution, renaming of array types
10 years ago
Dulma Churchill 5adab3cb61 Fix StmtExpr
10 years ago
Dulma Churchill a68c45c2a9 Fix dyspatch_async calls
10 years ago
Josh Berdine a85a88d145 Extend Sizeof with final extensible array length
10 years ago
Dulma Churchill 5ed970efa9 Fix the return stmt that would not be the last instruction in the path in some cases
10 years ago
Sam Blackshear fd8a864c15 doing preanalysis on-demand
10 years ago
Dulma Churchill bf9d194e43 Translate builtin_expect as its first argument. Avoids weird symb. exec. problems
10 years ago
Sam Blackshear 83a14a3541 changing API to take pdesc instead of cfg
10 years ago
Dino Distefano daf043bff1 Fixing shortcircuit in binary operator.
10 years ago
Andrzej Kotulski 1a98bc6492 update facebook-clang-plugins
10 years ago
Andrzej Kotulski 3699b9c0dc Fix translation of passing struct parameters by value
10 years ago
Dulma Churchill de615594df Skip whitelisted functions form trace
10 years ago
Jules Villard 8f154144c0 add skip_clang_analysis_in_path from inferconfig to the CLI
10 years ago
Jules Villard aec3d0ccdf add skip_translation_headers from inferconfig to the CLI
10 years ago
Dulma Churchill 83e6ab1a20 Blacklist translation of files in inferconfig
10 years ago
Dulma Churchill 93fcf7be9f Skip cpp models from traces
10 years ago
Dino Distefano aae1dbac3d Skipping reporting global variable warning on known non-expensive cases.
10 years ago
Josh Berdine 88a2da91fc Add `make -C infer/src test_build` to `make test`
10 years ago
Dulma Churchill 6d8d9f56c2 Reducing the scope of all frontend checks on declarations
10 years ago
Andrzej Kotulski bfce6bac47 Model empty vector access
10 years ago
Dulma Churchill 6c7c18e920 Model other functions from glog library
10 years ago
Dulma Churchill 9b1bd712b5 Marking getters/setters as builtins only inside the definition of the class
10 years ago
Josh Berdine 3e2fa59262 Reimplement command line options
10 years ago
Dulma Churchill d73d4ea177 Getting a more precise type when creating ObjC objects
10 years ago
Sam Blackshear c92bbf362b removing need to pass around lists of temporary id's in the frontend
10 years ago
Sam Blackshear 4fd2f52fe8 new analysis for adding nullify's
10 years ago
Dulma Churchill c3fbd5af29 Model CHECK macro and fix the model for builtin_expect
10 years ago
Dino Distefano 83c1bbc832 Implementing a checker to warn initialization of global variables with mehod calls.
10 years ago
Dulma Rodriguez 7671fe755f Skip translation and checks from headers in specified folders
10 years ago
Andrzej Kotulski 05c218d84f Declare local variable for conditional in procdesc
10 years ago
Dulma Rodriguez be91fb5429 Fix toll free bridging
10 years ago
Andrzej Kotulski 66d3d492f8 Fix translation of BinaryConditionalOperator
10 years ago
Dulma Rodriguez 8a1288860b Make alloc save a given procanem in the path
10 years ago
Dino Distefano b7ab1760a6 Translation of lambda [part one]
10 years ago
Jules Villard 70c8494625 opacify the type of node ids
10 years ago
Cristiano Calcagno 054ad223a8 Fix control-flow graph shape when conditional is last instruction.
10 years ago
Dulma Rodriguez d366bb970b Create the procdescs for frontend checks only when needed
10 years ago
Josh Berdine a5e1a6c77e Report time and memory stats
10 years ago
Dulma Rodriguez 6b2b76d956 Translate dynamic arrays to cpp classes
10 years ago
Josh Berdine 5481f14768 Remove dead code introduced in 41e99357
10 years ago
Andrzej Kotulski 590f73b59f Translate functions/methods from headers when they are referenced
10 years ago
Josh Berdine e1020c8ebe Remove -open(Utils) compile flag hack
10 years ago
Andrzej Kotulski 037b27d465 Put goto label map into Context instead of one global map
10 years ago
Andrzej Kotulski e495a81942 Remove parent_dec from translate_one_decl
10 years ago
Andrzej Kotulski 64bb3b62b3 Use variable stmt location info in init_res_trans
10 years ago
Dulma Rodriguez bc3134dd32 Translate initializing arrays of C++ classes
10 years ago
Dulma Rodriguez 44491679cf Fix broken tests in master
10 years ago
Sam Blackshear e9cb9f4352 assign pointer type checker
10 years ago
Cristiano Calcagno 031f433b15 Print timing information in InferClang debug mode.
10 years ago
Cristiano Calcagno a386cf7dbf Fix quadratic behaviour of collect_res_trans.
10 years ago
Josh Berdine fd062cf736 Refactor SymExec.ModelBuiltins into toplevel module
10 years ago
Cristiano Calcagno 509a666ee0 Refactor Sil.pvar into a separate module.
10 years ago
Cristiano Calcagno 53702e43e8 Created IR folder for the intermediate representaion files.
10 years ago
Sam Blackshear c03f39f20c Fixing some issues with Obj-C blocks
10 years ago