Brandon Kieft
439839a9fa
Add is_in_(interface/implementation) predicates
...
Reviewed By: dulmarod
Differential Revision: D7863886
fbshipit-source-id: d8268d9
7 years ago
Brandon Kieft
7d4bd403df
Add is_objc_method_exposed predicate
...
Reviewed By: dulmarod
Differential Revision: D7862233
fbshipit-source-id: da2ee1b
7 years ago
Brandon Kieft
01ee635902
Add is_objc_method_overriding predicate
...
Reviewed By: dulmarod
Differential Revision: D7859827
fbshipit-source-id: 14c58d2
7 years ago
Brandon Kieft
d7cf002461
Add new ObjC predicates, mostly related to categories
...
Reviewed By: dulmarod
Differential Revision: D7809653
fbshipit-source-id: c21f721
7 years ago
Dino Distefano
d4337abcb4
Added predicate for C++ copy constructors
...
Reviewed By: dulmarod
Differential Revision: D7829738
fbshipit-source-id: 73be42f
7 years ago
Dino Distefano
9043f26b89
Added documentation to cPredicate.mli
...
Reviewed By: dulmarod
Differential Revision: D7567708
fbshipit-source-id: 0b93c14
7 years ago
Jérémie Marguerie
8cfc7f2cad
Add function to retrieve the lifetime of an ivar pointer and check if it is strong
...
Reviewed By: dulmarod
Differential Revision: D7099861
fbshipit-source-id: b0edbeb
7 years ago
Jules Villard
4b1a7b1771
[cleanup] remove dead code
...
Summary:
Found the dead code with the script in the next commit, iteratively until no
warnings remained.
Methodology:
1. I kept pretty-printers for values, which can be useful to use from infer's REPL (or
when printf-debugging infer in general)
2. I kept functions that formed some consistent API (but not often, so YMMV), for instance if it looked like `Set.S`, or if it provides utility functions for stuff in development (mostly the procname dispatcher functions)
3. I tried not to lose comments associated with values no longer exported: if the value is commented in the .mli and not the .ml, I moved the comment
4. Some comments needed updating (not claiming I caught all of those)
5. Sometimes I rewrote the comments a bit when I noticed mis-attached comments
Reviewed By: mbouaziz
Differential Revision: D6723482
fbshipit-source-id: eabaafd
7 years ago
Dulma Churchill
a1010fb9fc
[linters] Ading predicate is_in_objc_class_named and make a verbose rule more targeted
...
Reviewed By: ddino
Differential Revision: D6323539
fbshipit-source-id: 5681c95
7 years ago
Vivek Dhiman
d8be5e0874
Added 'is_method_called_by_superclass'. A new predicate that checks if the caller name is super class in a 'method call'.
...
Reviewed By: dulmarod
Differential Revision: D6311990
fbshipit-source-id: 5c9919c
7 years ago
Dulma Churchill
18782be7c9
[linters] Adding a new predicate for in an ObjC class that is subclass of some class
...
Reviewed By: ddino
Differential Revision: D6284441
fbshipit-source-id: bcdd389
7 years ago
Dominic Cooney
c542b65a42
Add a lint rule warning about ObjC custom setters for weak properties
...
Reviewed By: dulmarod
Differential Revision: D6219684
fbshipit-source-id: 586add0
7 years ago
Dulma Churchill
4769c481ad
[linters] Add a linter for checking const pointers to Objective-C classes
...
Reviewed By: jvillard
Differential Revision: D5985910
fbshipit-source-id: 9abbb78
7 years ago
Dulma Churchill
652af47da7
[linters] Add transition to parameters by position in the parameters list
...
Reviewed By: ddino
Differential Revision: D5911586
fbshipit-source-id: 263b7dc
7 years ago
Dino Distefano
d694038abd
New test for the tableaux method.
...
Reviewed By: dulmarod
Differential Revision: D5862915
fbshipit-source-id: 6c6c4b6
7 years ago
Dulma Churchill
47088e078e
[linters] Use the sdk version by path in the error message of unavailable api check
...
Reviewed By: jvillard
Differential Revision: D5738395
fbshipit-source-id: 4f740a1
7 years ago
Roy Li
76bc7d686c
Add predicate for enum constants of a particular enum
...
Reviewed By: dulmarod
Differential Revision: D5637214
fbshipit-source-id: dccc65e
7 years ago
Dulma Churchill
30d2822846
[linters] Restrict the remove observer check to when target ios sdk version is greater or equal than 9.0
...
Reviewed By: ddino
Differential Revision: D5670652
fbshipit-source-id: bb26abf
7 years ago
Dulma Churchill
a6f8850617
[linters] Provide predicate for checking the current method in the context
...
Reviewed By: ddino
Differential Revision: D5658198
fbshipit-source-id: ed9ce7f
8 years ago
Dulma Churchill
3da5908728
[linters] Remove unavailable api class false positives and turn it on
...
Summary:
This is a check for when an unavailable class is being allocated.
This diff also adds a check for the context to remove false positives: If the class is not available but the method calls are wrapped in a check whether the class is available, then don't report.
Reviewed By: jvillard
Differential Revision: D5631191
fbshipit-source-id: 2082dfe
8 years ago
Meng Zhang
cdc54563d4
[Infer] Write a has_visibility_attribute predicate for AL
...
Reviewed By: dulmarod
Differential Revision: D5575154
fbshipit-source-id: 677a7af
8 years ago
Dino Distefano
a386ef5e83
Adding predicate for identify a selector with a particular name
...
Reviewed By: jvillard
Differential Revision: D5489581
fbshipit-source-id: edcb82e
8 years ago
Dulma Churchill
416478d453
[linters] Predicate for checking enum constants
...
Reviewed By: akotulski
Differential Revision: D5423574
fbshipit-source-id: c1deb13
8 years ago
Dulma Churchill
7c384669eb
[linters] Add a new linter UNAVAILABLE_CLASS_IN_SUPPORTED_IOS_SDK for checking unavailable classes in supported ios sdk
...
Reviewed By: akotulski
Differential Revision: D5381931
fbshipit-source-id: 13e36df
8 years ago
Josh Berdine
bab3d81cb0
Convert Reason to OCaml, and auto-format OCaml
...
Summary:
Conversion and reformat of infer source using ocamlformat
auto-formatting tool.
Current status:
- Because Reason does not handle docstrings, the output of the
conversion is not 'Warning 50'-clean, meaning that there are
docstrings with ambiguous placement. I'll need to manually fix
them just before landing.
Reviewed By: jvillard
Differential Revision: D5225546
fbshipit-source-id: 3bd2786
8 years ago
Dino Distefano
4a5d0e0b55
Adding ability to express properties on the hierachy of protocols
...
Reviewed By: dulmarod
Differential Revision: D5227505
fbshipit-source-id: f4f9774
8 years ago
Dino Distefano
55da0055c9
Predicate for `using namespace`
...
Reviewed By: dulmarod
Differential Revision: D5172430
fbshipit-source-id: 0cd9251
8 years ago
Dulma Churchill
03bdf0fe2c
[linters] Cast from pointer to integer
...
Reviewed By: jvillard
Differential Revision: D5157470
fbshipit-source-id: 5385b5a
8 years ago
Dino Distefano
bdd2395be6
Adding ability to get type of paramters.
...
Reviewed By: dulmarod
Differential Revision: D5069844
fbshipit-source-id: c591f76
8 years ago
Dulma Churchill
d04a03b8e3
[linters] Remove redundant predicate
...
Reviewed By: ddino
Differential Revision: D5029948
fbshipit-source-id: c549c7e
8 years ago
Dulma Churchill
c9670d215d
[linters] Add new predicate has_type and check for implicit cast
...
Reviewed By: ddino
Differential Revision: D5025959
fbshipit-source-id: de7eb55
8 years ago
Dino Distefano
5bb41cc18c
Removing predicates _strict
...
Reviewed By: dulmarod
Differential Revision: D4863173
fbshipit-source-id: 671ef75
8 years ago
Dino Distefano
3c6f53c896
Adding predicate to get return type of a method and start a new parser for types
...
Reviewed By: dulmarod
Differential Revision: D4863095
fbshipit-source-id: c966d1d
8 years ago
Dino Distefano
7cef8ae3b5
Making AL distinguish class methods from instance methods
...
Reviewed By: dulmarod
Differential Revision: D4826401
fbshipit-source-id: 97c2570
8 years ago
Dino Distefano
d32faf4f46
Replacing strings by a new data type for AL variables
...
Reviewed By: dulmarod
Differential Revision: D4737573
fbshipit-source-id: b9bf2fc
8 years ago
Dino Distefano
df543b900b
Making easier to specify subclassing
...
Reviewed By: dulmarod
Differential Revision: D4699748
fbshipit-source-id: 39f7c05
8 years ago
Dino Distefano
43f3a33c0c
[infer][AL-DSL] Added predicates to query method calls of a certain class (Real Version).
...
Reviewed By: dulmarod
Differential Revision: D4689148
fbshipit-source-id: 97716fd
8 years ago
Dulma Churchill
9ac65a7b1d
[linters] Take current os version into account in the unavailable api check
...
Reviewed By: jvillard, martinoluca
Differential Revision: D4508223
fbshipit-source-id: c44b75d
8 years ago
Dino Distefano
fb14d31bb7
Making signature of predicates uniform
...
Reviewed By: martinoluca
Differential Revision: D4507368
fbshipit-source-id: 4957426
8 years ago
Dulma Churchill
269ea5ffe5
[linters] Take into account the respondsToSelector block in the unavailable api check
...
Reviewed By: martinoluca
Differential Revision: D4455886
fbshipit-source-id: 58d4d96
8 years ago
Cristiano Calcagno
af83d1eefe
[clang] Minor clang frontend cleanup: remove dead code and renaming
...
Summary: Removed unused files and renamed for consistency.
Reviewed By: jvillard
Differential Revision: D4397546
fbshipit-source-id: 85eb86d
8 years ago