Skip to content

Commit 8c6bd5a

Browse files
skchofacebook-github-bot
authored andcommitted
[CCBM] Remove ConfigChecksBetweenMarkers checker
Reviewed By: ngorogiannis Differential Revision: D32677613 fbshipit-source-id: 7e1272cef8
1 parent e9e9044 commit 8c6bd5a

File tree

34 files changed

+58
-894
lines changed

34 files changed

+58
-894
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ BUILD_SYSTEMS_TESTS += \
139139
fb_differential_of_config_impact_report_objc
140140

141141
DIRECT_TESTS += \
142-
objc_fb-config-impact \
143-
objc_fb-gk-interaction
142+
objc_fb-config-impact
144143
endif
145144

146145

@@ -228,7 +227,6 @@ DIRECT_TESTS += \
228227
java_fb-config-impact \
229228
java_fb-config-impact-paths \
230229
java_fb-config-impact-strict \
231-
java_fb-gk-interaction \
232230
java_fb-immutability \
233231
java_fb-performance
234232
endif

infer/man/man1/infer-analyze.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ OPTIONS
5151
reactive analysis should start. Source files should be specified
5252
relative to project root or be absolute
5353

54-
--config-checks-between-markers
55-
Activates: checker config-checks-between-markers: [EXPERIMENTAL]
56-
Collects config checks between marker start and end. (Conversely:
57-
--no-config-checks-between-markers)
58-
59-
--config-checks-between-markers-only
60-
Activates: Enable config-checks-between-markers and disable all
61-
other checkers (Conversely:
62-
--no-config-checks-between-markers-only)
63-
6454
--config-impact-analysis
6555
Activates: checker config-impact-analysis: [EXPERIMENTAL] Collects
6656
function that are called without config checks. (Conversely:

infer/man/man1/infer-full.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,6 @@ OPTIONS
267267
escaped for the shell, eg coming from Xcode (can be specified
268268
multiple times) See also infer-capture(1).
269269

270-
--config-checks-between-markers
271-
Activates: checker config-checks-between-markers: [EXPERIMENTAL]
272-
Collects config checks between marker start and end. (Conversely:
273-
--no-config-checks-between-markers) See also infer-analyze(1).
274-
275-
--config-checks-between-markers-only
276-
Activates: Enable config-checks-between-markers and disable all
277-
other checkers (Conversely:
278-
--no-config-checks-between-markers-only) See also infer-analyze(1).
279-
280270
--config-impact-analysis
281271
Activates: checker config-impact-analysis: [EXPERIMENTAL] Collects
282272
function that are called without config checks. (Conversely:
@@ -472,7 +462,6 @@ OPTIONS
472462
COMPONENT_WITH_MULTIPLE_FACTORY_METHODS (enabled by default),
473463
CONDITION_ALWAYS_FALSE (disabled by default),
474464
CONDITION_ALWAYS_TRUE (disabled by default),
475-
CONFIG_CHECKS_BETWEEN_MARKERS (disabled by default),
476465
CONFIG_IMPACT (disabled by default),
477466
CONFIG_IMPACT_STRICT (disabled by default),
478467
CONSTANT_ADDRESS_DEREFERENCE (disabled by default),

infer/man/man1/infer-report.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ OPTIONS
142142
COMPONENT_WITH_MULTIPLE_FACTORY_METHODS (enabled by default),
143143
CONDITION_ALWAYS_FALSE (disabled by default),
144144
CONDITION_ALWAYS_TRUE (disabled by default),
145-
CONFIG_CHECKS_BETWEEN_MARKERS (disabled by default),
146145
CONFIG_IMPACT (disabled by default),
147146
CONFIG_IMPACT_STRICT (disabled by default),
148147
CONSTANT_ADDRESS_DEREFERENCE (disabled by default),

infer/man/man1/infer.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,6 @@ OPTIONS
267267
escaped for the shell, eg coming from Xcode (can be specified
268268
multiple times) See also infer-capture(1).
269269

270-
--config-checks-between-markers
271-
Activates: checker config-checks-between-markers: [EXPERIMENTAL]
272-
Collects config checks between marker start and end. (Conversely:
273-
--no-config-checks-between-markers) See also infer-analyze(1).
274-
275-
--config-checks-between-markers-only
276-
Activates: Enable config-checks-between-markers and disable all
277-
other checkers (Conversely:
278-
--no-config-checks-between-markers-only) See also infer-analyze(1).
279-
280270
--config-impact-analysis
281271
Activates: checker config-impact-analysis: [EXPERIMENTAL] Collects
282272
function that are called without config checks. (Conversely:
@@ -472,7 +462,6 @@ OPTIONS
472462
COMPONENT_WITH_MULTIPLE_FACTORY_METHODS (enabled by default),
473463
CONDITION_ALWAYS_FALSE (disabled by default),
474464
CONDITION_ALWAYS_TRUE (disabled by default),
475-
CONFIG_CHECKS_BETWEEN_MARKERS (disabled by default),
476465
CONFIG_IMPACT (disabled by default),
477466
CONFIG_IMPACT_STRICT (disabled by default),
478467
CONSTANT_ADDRESS_DEREFERENCE (disabled by default),

infer/src/backend/Payloads.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type t =
1313
; biabduction: BiabductionSummary.t option
1414
; buffer_overrun_analysis: BufferOverrunAnalysisSummary.t option
1515
; buffer_overrun_checker: BufferOverrunCheckerSummary.t option
16-
; config_checks_between_markers: ConfigChecksBetweenMarkers.Summary.t option
1716
; config_impact_analysis: ConfigImpactAnalysis.Summary.t option
1817
; cost: CostDomain.summary option
1918
; disjunctive_demo: DisjunctiveDemo.domain option
@@ -47,8 +46,6 @@ let fields =
4746
~biabduction:(fun f -> mk_pe f "Biabduction" BiabductionSummary.pp)
4847
~buffer_overrun_analysis:(fun f -> mk f "BufferOverrunAnalysis" BufferOverrunAnalysisSummary.pp)
4948
~buffer_overrun_checker:(fun f -> mk f "BufferOverrunChecker" BufferOverrunCheckerSummary.pp)
50-
~config_checks_between_markers:(fun f ->
51-
mk f "ConfigChecksBetweenMarkers" ConfigChecksBetweenMarkers.Summary.pp )
5249
~config_impact_analysis:(fun f -> mk f "ConfigImpactAnalysis" ConfigImpactAnalysis.Summary.pp)
5350
~cost:(fun f -> mk f "Cost" CostDomain.pp_summary)
5451
~disjunctive_demo:(fun f -> mk f "Disjunctive Demo" DisjunctiveDemo.pp_domain)
@@ -76,7 +73,6 @@ let empty =
7673
; biabduction= None
7774
; buffer_overrun_analysis= None
7875
; buffer_overrun_checker= None
79-
; config_checks_between_markers= None
8076
; config_impact_analysis= None
8177
; cost= None
8278
; disjunctive_demo= None

infer/src/backend/Payloads.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ include sig
1717
; biabduction: BiabductionSummary.t option
1818
; buffer_overrun_analysis: BufferOverrunAnalysisSummary.t option
1919
; buffer_overrun_checker: BufferOverrunCheckerSummary.t option
20-
; config_checks_between_markers: ConfigChecksBetweenMarkers.Summary.t option
2120
; config_impact_analysis: ConfigImpactAnalysis.Summary.t option
2221
; cost: CostDomain.summary option
2322
; disjunctive_demo: DisjunctiveDemo.domain option

infer/src/backend/registerCheckers.ml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,6 @@ let all_checkers =
194194
interprocedural Payloads.Fields.annot_map AnnotationReachability.checker
195195
in
196196
[(annot_reach, Java); (annot_reach, Clang)] ) }
197-
; { checker= ConfigChecksBetweenMarkers
198-
; callbacks=
199-
(let checker =
200-
interprocedural Payloads.Fields.config_checks_between_markers
201-
ConfigChecksBetweenMarkers.checker
202-
in
203-
[(checker, Clang); (checker, Java)] ) }
204197
; { checker= ConfigImpactAnalysis
205198
; callbacks=
206199
(let checker =

infer/src/base/Checker.ml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type t =
1313
| Biabduction
1414
| BufferOverrunAnalysis
1515
| BufferOverrunChecker
16-
| ConfigChecksBetweenMarkers
1716
| ConfigImpactAnalysis
1817
| Cost
1918
| DisjunctiveDemo
@@ -153,23 +152,6 @@ let config_unsafe checker =
153152
; cli_flags= Some {deprecated= []; show_in_help= true}
154153
; enabled_by_default= false
155154
; activates= [BufferOverrunAnalysis] }
156-
| ConfigChecksBetweenMarkers ->
157-
{ id= "config-checks-between-markers"
158-
; kind=
159-
UserFacing
160-
{ title= "Config Checks between Markers"
161-
; markdown_body=
162-
"This checker collects config checkings in some program regions determined by \
163-
pairs of marker-starts and marker-ends. The set of config checking functions, \
164-
marker-start functions, and marker-end functions is hardcoded and empty by \
165-
default for now, so to use this checker, please modify the code directly in \
166-
[FbGKInteraction.ml](https://github.com/facebook/infer/tree/main/infer/src/opensource)."
167-
}
168-
; support= supports_clang_and_java_experimental
169-
; short_documentation= "[EXPERIMENTAL] Collects config checks between marker start and end."
170-
; cli_flags= Some {deprecated= []; show_in_help= true}
171-
; enabled_by_default= false
172-
; activates= [] }
173155
| ConfigImpactAnalysis ->
174156
{ id= "config-impact-analysis"
175157
; kind=

infer/src/base/Checker.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ type t =
1212
| Biabduction
1313
| BufferOverrunAnalysis
1414
| BufferOverrunChecker
15-
| ConfigChecksBetweenMarkers
1615
| ConfigImpactAnalysis
1716
| Cost
1817
| DisjunctiveDemo

0 commit comments

Comments
 (0)