175 Commits (master)

Author SHA1 Message Date
Mehdi Bouaziz 148664a7d4 Fix objc tests
7 years ago
Mehdi Bouaziz ce34dcb695 Format everything
7 years ago
Martin Trojer e2c08e4085 Decouple objc tests from xcode-select
7 years ago
Mehdi Bouaziz ad986dffde Get rid of Declare_locals
7 years ago
Dulma Churchill 5653839540 [clang] Add the types of captured variables to the procname of blocks
7 years ago
Dulma Churchill 2cf0e7a1d2 [clang] Treat class method as a static self only as the first argument of an instance method call, not a class method
7 years ago
Dulma Churchill 91e0a7d1a3 [IR] Take parameters into account in to_filename method
7 years ago
Dulma Churchill 79a8f8716c [clang] Adding parameters as part of the procname for C++/ObjC methods and ObjC blocks
7 years ago
Jules Villard 8b882ac1df Change license to MIT
7 years ago
Dulma Churchill accfc00d82 [objc frontend] Do not crash on internal forward classes
7 years ago
Jules Villard 766a16cd90 [clang] enforce that `instruction` always returns one SIL expression
7 years ago
Jules Villard dfe2ad5229 [camel] call `Format.pp_print_*` directly where appropriate
7 years ago
Jules Villard 902de9d6e3 [sil] make return value and type mandatory
7 years ago
Dulma Churchill 077d9a534b [objc frontend] Do not assume that the fast enumeration in ObjC always includes a declaration of the loop variable
7 years ago
Dulma Churchill 038c0b92d4 [objc frontend] Raise SelfClassException only inside ObjCMethodCallExpr nodes
7 years ago
Jules Villard 73a47d594c [debug] print procedures in alphabetical order in cfgs
7 years ago
Ezgi Çiçek 523c2f539b change clang translation to track if_kind (i.e. the type of prune node)
7 years ago
Dulma Churchill d04a7aed52 [clang] Removed the mangling part of Clang global variables in the error messages
8 years ago
Varun Arora ad10435b58 [IR] combine is_objc_instance_method and is_cpp_instance_method fields in ProcAttributes into method_kind
8 years ago
Dulma Churchill 91fbe68cc9 [retain cycles] Do not report when the captured variable is weak
8 years ago
Jules Villard 6b5390fe79 [cfg] rename iCFG to cfg in dotty files
8 years ago
Dulma Churchill 66b1956e9a [debug] Adding the captured variable to the printing of the closures
8 years ago
Jeremy Dubreil 71cf1760c5 [infer][nullable checker] find the nullable violation involving annotated protocol methods
8 years ago
Dulma Churchill 45df254a99 [infer][PR] [C/C++] Encode filename into the Procname of global initializers
8 years ago
Dulma Churchill 5902f6363b [objc] Add a new call flag for calls with objc blocks as parameters
8 years ago
Dulma Churchill 3a3e1893d6 [objc] Fix bad footprint caused by incorrect translation of blocks as arguments
8 years ago
Dulma Churchill e7907032bf [clang] Remove allocating blocks
8 years ago
Dulma Churchill 2f8b749045 [objc] Better names for the block translation and using temp variables
8 years ago
Dulma Churchill 01219a0298 [cleanup] Remove the retain count implementation from ObjC that is unused.
8 years ago
Dulma Churchill 3304160790 [tests] Remove frontend test that depends on header macro.
8 years ago
Jules Villard 94e7a7b141 [siof] one access per sink, better report deduplication
8 years ago
Dulma Churchill 67b08f666f [objc] Translate ObjCAvailabilityExpr
8 years ago
Jeremy Dubreil 919b9268d4 [infer][clang] simplify the translation of the prune nodes
8 years ago
Andrzej Kotulski 88b74d524d [C++] Rewrite initListExpr_trans
8 years ago
Jules Villard fe01f47e41 [clang] correct sizeof info
8 years ago
Jia Chen 0b641edaac Do not assign the hidden field when processing init list initialization for objective c
8 years ago
Jules Villard 93ec47a5f4 [IR] add stride to array type
8 years ago
Dulma Churchill 6097c05d88 [clang] Add a preanalysis to compute nullability annotations
8 years ago
Andrzej Kotulski 462220ce3e [typ] Print type qualifiers in Typ.pp_full
8 years ago
Andrzej Kotulski 62d1d74d74 [Typ] Change Typ.pp_full to not include class keywords
9 years ago
Jules Villard cd421b4a5f [make] print @ commands when passed VERBOSE=1
9 years ago
Dulma Churchill 565ce2166d [ios] Translate nonnull annotations and take them into account in parameter not null checked issues.
9 years ago
Jules Villard dac8906d86 [make] make sure makefile uses config-time values
9 years ago
Andrzej Kotulski 6a02568982 [clang] Change procname file naming scheme
9 years ago
Dulma Churchill 461bd691ce [clang] Translate nullable annotations of return types of methods
9 years ago
Jules Villard a229595856 [tests] run objc frontend tests...
9 years ago
Jules Villard a6be58848b [make] make frontend tests more functional
9 years ago
Jules Villard bce1a1ff2e [make] make infer/src/Makefile less phony
9 years ago
Josh Berdine 0cf71c74ef Sort nodes when printing cfg to dot file
9 years ago
Andrzej Kotulski 2810740377 [tests] Make project root infer/test/ for clang tests
9 years ago
Sam Blackshear 708c0bf1f8 [backend] eliminate phantom spaces in printing of types
9 years ago
Andrzej Kotulski 6b083af4f3 [tests] small refactor of frontend makefiles
9 years ago
Cristiano Calcagno a71902355f [debug][dotty] Fix issue in dotty output where overloaded functions were conflated
9 years ago
Cristiano Calcagno 3fb8801b6c [IR] Change cfg representation so the node number is per-procedure and not per-cfg
9 years ago
Josh Berdine f45cf115e6 [test] Do not use infer from PATH
9 years ago
Jules Villard 62bfde8b5a [clang] translate global var initializers
9 years ago
Cristiano Calcagno 847c141912 [tests] Clean up test files shared between frontend and endtoend tests
9 years ago
Cristiano Calcagno c134eac91e [tests] Convert objective-c frontend tests to new direct format
9 years ago
Cristiano Calcagno afebcdad60 [tests] Prepare objective-c tests for conversion to the new direct testing format
9 years ago
Jules Villard 10f10a90c6 diverge on `throw`
9 years ago
Dulma Churchill 0253608fab Separate the flow of the frontend checks form the translation
9 years ago
Sam Blackshear 7b58c71475 centralize creation and detection of clang tmp vars, fix errdesc/bucketing
9 years ago
Dulma Churchill 5adab3cb61 Fix StmtExpr
9 years ago
Dulma Churchill a68c45c2a9 Fix dyspatch_async calls
9 years ago
Sam Blackshear fd8a864c15 doing preanalysis on-demand
9 years ago
Andrzej Kotulski 617ffab0ac Add @generated comment to icfg.dot files
9 years ago
Sam Blackshear 3f49f3a1d4 using liveness to add removetemps instructions
9 years ago
Sam Blackshear 20925df57c removing unused deallocate param in nullify instr
9 years ago
Sam Blackshear 4fd2f52fe8 new analysis for adding nullify's
9 years ago
Sam Blackshear 6f6da12b2c don't nullify params/locals at beginning of procedure
9 years ago
Dulma Churchill 54a3bdd455 Load the attribute file to get the getter/setter info from the procdesc
9 years ago
Andrzej Kotulski 05c218d84f Declare local variable for conditional in procdesc
9 years ago
Dulma Rodriguez be91fb5429 Fix toll free bridging
9 years ago
Dulma Rodriguez 8a1288860b Make alloc save a given procanem in the path
9 years ago
Cristiano Calcagno 054ad223a8 Fix control-flow graph shape when conditional is last instruction.
9 years ago
Dulma Rodriguez d366bb970b Create the procdescs for frontend checks only when needed
9 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
Dulma Rodriguez cb45e38f7f Fix broken frontend test in master
10 years ago
Sam Blackshear 7166a4856c nullifying vars captured in blocks
10 years ago
Sam Blackshear c03f39f20c Fixing some issues with Obj-C blocks
10 years ago
Jules Villard 037c257c4f Fix base results for the Objective C frontend tests
10 years ago
Dino Distefano fc5d4897a5 Registered Observer check done by front-end
10 years ago
Dulma Rodriguez ef3e516f6f Translate ImplicitValueInitExpr
10 years ago
Dulma Rodriguez 379d185d74 Sort the fields in the tenv at the end of translation as some translations need the original order
10 years ago
Dino Distefano be8f25c90b Improved/simplified framework for frontend checkers.
10 years ago
Andrzej Kotulski 4584f7f6fc [clang-format] Reformat all c/cpp/objc sources with clang-format
10 years ago
Andrzej Kotulski a317ac38f2 Use init_exp in InitListExpr and CompoundLiteralExpr
10 years ago
Dulma Rodriguez 7855d6ecfa Fix the order of the translated stmts inside compound stmt
10 years ago
Josh Berdine 63b57790f9 Fix indentation of multiline copyright comment
10 years ago
Dulma Rodriguez 1e5b8aeee7 Adding builtin setters and using them by skip
10 years ago
Andrzej Kotulski eeb7c33230 Update fcp
10 years ago
Dulma Rodriguez 9c9504ba51 Using the link from method decl to property to determine whether the method is accessor
10 years ago
Andrzej Kotulski a1c1b10862 Use priority node for branches inside coditional operator
10 years ago
Andrzej Kotulski 71482fb472 Refactor CompoundBinaryOperator to use same code as BinaryOperator
10 years ago
Dulma Rodriguez 12d21c73dd Adding builtins for getters and calling them by skip
10 years ago
Andrzej Kotulski 35bb8a9a26 Change order in which ids get generated for objcMessageExpr_trans
10 years ago
Andrzej Kotulski 3f9a08f99c Defer cfg node creation for returnStmt and init_expr_trans
10 years ago