Merge "Support source code cross-referencing for C++ and Java"

This commit is contained in:
Treehugger Robot
2019-07-30 00:13:12 +00:00
committed by Gerrit Code Review
7 changed files with 215 additions and 0 deletions

View File

@@ -756,6 +756,14 @@ func (c *config) RunErrorProne() bool {
return c.IsEnvTrue("RUN_ERROR_PRONE")
}
func (c *config) XrefCorpusName() string {
return c.Getenv("XREF_CORPUS")
}
func (c *config) EmitXrefRules() bool {
return c.XrefCorpusName() != ""
}
// Returns true if -source 1.9 -target 1.9 is being passed to javac
func (c *config) TargetOpenJDK9() bool {
return c.targetOpenJDK9