David Lively
322066d248
Rename {has_,}cxx_full_name to {has_,}cxx_fully_qualified_name.
...
Reviewed By: jvillard
Differential Revision: D13597510
fbshipit-source-id: 4b48d6444
6 years ago
David Lively
1f2b0d4152
Add new predicate has_cxx_qual_name and macro %cxx_full_name%
...
Reviewed By: jvillard
Differential Revision: D13490505
fbshipit-source-id: df66224d6
6 years ago
David Lively
5a531ac755
Make is_cxx_method_overriding predicate take regex matching class/name
...
Reviewed By: jvillard
Differential Revision: D13419974
fbshipit-source-id: c63ad011e
6 years ago
David Lively
33eabe6bfd
New is_cxx_method_overriding predicate
...
Reviewed By: jvillard
Differential Revision: D13222367
fbshipit-source-id: 8b20575b7
7 years ago
Dino Distefano
08a26d4ba1
First approximation of stateless
...
Reviewed By: jvillard
Differential Revision: D10141376
fbshipit-source-id: a1dbb4c21
7 years ago
Dino Distefano
89700a7d95
Added new predicated for captured values
...
Reviewed By: jvillard
Differential Revision: D10162271
fbshipit-source-id: 47f9420b8
7 years ago
Dino Distefano
3c04f32709
hadoc const version
...
Reviewed By: jvillard
Differential Revision: D9850969
fbshipit-source-id: 25102d5bb
7 years ago
Dino Distefano
21145c75c9
Added new predicate is_const_expr()
...
Reviewed By: jvillard
Differential Revision: D9496229
fbshipit-source-id: c0bccf8c9
7 years ago
Dino Distefano
370f33c8dc
Added predicate for CXX11ConstantExpr
...
Reviewed By: jvillard
Differential Revision: D9313716
fbshipit-source-id: 24588b600
7 years ago
Kai Yang
2d73494e87
Add is_static_local_var predicate
...
Reviewed By: ddino
Differential Revision: D8775628
fbshipit-source-id: c41798d
7 years ago
Jules Villard
8b882ac1df
Change license to MIT
...
Summary:
Change the license of the source code from BSD + PATENTS to MIT.
Change `checkCopyright` to reflect the new license and learn some new file
types.
Generated with:
```
git grep BSD | xargs -n 1 ./scripts/checkCopyright -i
```
Reviewed By: jeremydubreil, mbouaziz, jberdine
Differential Revision: D8071249
fbshipit-source-id: 97ca23a
7 years ago
Brandon Kieft
eab7fd1242
Add predicates to check the receiver class type
...
Reviewed By: dulmarod
Differential Revision: D7888339
fbshipit-source-id: ecedc82
7 years ago
Brandon Kieft
cb66e4212b
Add predicates for instance and class methods
...
Reviewed By: dulmarod
Differential Revision: D7875528
fbshipit-source-id: dce8360
7 years ago
Brandon Kieft
275f4c3a8c
Add predicates to check for protocols
...
Reviewed By: dulmarod
Differential Revision: D7867975
fbshipit-source-id: 20d599d
7 years ago
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
8 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
8 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
8 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
8 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
8 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
8 years ago
Dino Distefano
d694038abd
New test for the tableaux method.
...
Reviewed By: dulmarod
Differential Revision: D5862915
fbshipit-source-id: 6c6c4b6
8 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
8 years ago
Roy Li
76bc7d686c
Add predicate for enum constants of a particular enum
...
Reviewed By: dulmarod
Differential Revision: D5637214
fbshipit-source-id: dccc65e
8 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
8 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