-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
88 additions
and
87 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...k/common/util/report/qual/ReportCall.java → ...on/util/count/report/qual/ReportCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mmon/util/report/qual/ReportCreation.java → ...til/count/report/qual/ReportCreation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ommon/util/report/qual/ReportInherit.java → ...util/count/report/qual/ReportInherit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mmon/util/report/qual/ReportOverride.java → ...til/count/report/qual/ReportOverride.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mon/util/report/qual/ReportReadWrite.java → ...il/count/report/qual/ReportReadWrite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rk/common/util/report/qual/ReportUse.java → ...mon/util/count/report/qual/ReportUse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../common/util/report/qual/ReportWrite.java → ...n/util/count/report/qual/ReportWrite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
framework/src/main/java/org/checkerframework/common/util/count/report/ReportChecker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.checkerframework.common.util.count.report; | ||
|
||
import javax.annotation.processing.SupportedOptions; | ||
import org.checkerframework.common.basetype.BaseTypeChecker; | ||
|
||
/** | ||
* The Report Checker performs semantic searches over a program, for example, to find all methods | ||
* that override a specific method, all classes that inherit from a specific class, or all uses of | ||
* do-while-loops (and not also while loops!). | ||
* | ||
* <p>The search is specified in two different ways. | ||
* | ||
* <p>The first way is to write a stub specification file using the annotations in {@code | ||
* org.checkerframework.common.util.count.report.qual.*}. You can see examples in the Checker | ||
* Framework repository at {@code framework/tests/report/reporttest.astub} and {@code | ||
* framework/jtreg/StubParserEnum/AnnotationFileParserEnum.astub}. | ||
* | ||
* <p>The second way is the {@code -AreportTreeKinds} and {@code -AreportModifiers} options, which | ||
* search for specific tree kinds or modifiers. | ||
* | ||
* <p>Some similar features are available from IDEs (e.g., show references), but this tool provides | ||
* much more flexibility and a command-line tool. | ||
* | ||
* <p>Options: | ||
* | ||
* <ul> | ||
* <li><code>-AreportTreeKinds</code>: comma-separated list of <code>Tree.Kind</code>s that should | ||
* be reported | ||
* <li><code>-AreportModifiers</code>: comma-separated list of modifiers that should be reported | ||
* </ul> | ||
* | ||
* @see org.checkerframework.common.util.count.AnnotationStatistics | ||
* @see org.checkerframework.common.util.count.JavaCodeStatistics | ||
*/ | ||
@SupportedOptions({"reportTreeKinds", "reportModifiers"}) | ||
public class ReportChecker extends BaseTypeChecker { | ||
|
||
/** Creates a ReportChecker. */ | ||
public ReportChecker() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
framework/src/main/java/org/checkerframework/common/util/report/DoNothingChecker.java
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
framework/src/main/java/org/checkerframework/common/util/report/ReportChecker.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters