2012 · 74 citations · 7 references
ComputingComputer ScienceCompilersProgramming LanguagesSoftware EngineeringAbstract Syntax TreesControl-flow AnalysisData-flow AnalysisSoftware ConstructionStatic Code AnalysisSyntax AnalysisCode CompilationCompiler SupportDependency Management PolicyDependency Policy EnforcementIndexingRegular ExpressionsSource Code Analysis
Large software companies need customized tools to manage their source code. These tools are often built in an ad-hoc fashion, using brittle technologies such as regular expressions and home-grown parsers. Changes in the language cause the tools to break. More importantly, these ad-hoc tools often do not support uncommon-but-valid code code patterns. We report our experiences building source-code analysis tools at Google on top of a third-party, open-source, extensible compiler. We describe three tools in use on our Java code base. The first, Strict Java Dependencies, enforces our dependency policy in order to reduce JAR file sizes and testing load. The second, error-prone, adds new error checks to the compilation process and automates repair of those errors at a whole-code base scale. The third, Thindex, reduces the indexing burden for a Java IDE so that it can support Google-sized projects.
7
David Hovemeyer, William Pugh · 2004 · 775 citations
David Hovemeyer, William Pugh · ACM SIGPLAN Notices · 2004 · 391 citations
Craig Chambers, Ashish Raniwala, Frances Perry et al. · 2010 · 336 citations
Evaluating static analysis defect warnings on production software
Nathaniel Ayewah, William Pugh, J. David Morgenthaler et al. · 2007 · 214 citations
Nathaniel Ayewah, William Pugh · 2010 · 131 citations