Tableau
4M+ lines of C++ with god classes and widespread API usage. More than 5,000 modules refactored in under three months.
Your codebase may need the same structural change in thousands of places: splitting a god class, retiring or standardizing an API, or untangling complex GOTO-based logic. IDE refactoring tools often have limited scope, regex scripts cannot reliably interpret code semantics, and GenAI agents can produce inconsistent results across runs.
With DMS, our compiler-grade transformation engine, we define the change through our proprietary rewrite rules engine and apply it systematically across millions of lines of code in more than 40 languages. DMS combines proprietary pattern-matching technology with structural and semantic analysis to locate every instance that meets the rule's criteria and apply the appropriate transformation.
Names and types are resolved to help ensure changes target the intended code elements, and affected call sites can be updated consistently. DMS also preserves comments and source layout where appropriate. The result is scalable, repeatable refactoring, with testing used to verify that the transformed code continues to behave as intended.
Book A Free Refactoring AssessmentMartin Fowler defines refactoring as restructuring software "without changing its observable behavior" (refactoring.com). That is the contract for every rule below. The difference is reach: each one runs over the whole system, identically, in one pass.
Those tools are fine for a rename inside one project. A system-wide campaign hits hazards they were not built for. DMS was, and deterministic transformation is why.
4M+ lines of C++ with god classes and widespread API usage. More than 5,000 modules refactored in under three months.
5M+ lines of C++ avionics mission software restructured into a CORBA-compatible component architecture. The work is peer-reviewed and published.
HLASM assembler converted to maintainable C, with control flow reconstructed so the result reads as structured code.
The change is obvious, but it touches thousands of files and nobody trusts search-and-replace with it.
A god class sits on every critical path, causes merge conflicts weekly, and can't be split by hand without freezing the team.
An old framework or internal library is called from thousands of places, so the migration slips to next year. Again.
GOTO tangles, IFs nested ten deep, #if blocks for platforms retired a decade ago. Every change costs a day of reading first.
We parse the whole codebase under NDA and measure what the campaign will change: class sizes, clone rates, dead-code volume, API usage counts. You get a complexity report, automation estimate and rough timeline in about 5 business days.
Your architects agree the target structure; we encode it as rewrite rules over the syntax tree, with names and types resolved. Every refactoring is written down and reviewable.
The rules run on a representative module first. Your engineers review the diffs, and we fix rules, not individual edits, until the output is what you would have written by hand.
The rule set runs across the whole system and the result is checked against your builds and test suites. Because rules re-run on the latest code, there is no code freeze.
A defined set of refactorings, such as god class splits, dead code and GOTO removal, applied across the system at a fixed price.
Old API usage moved to the new one as a rule set, including the call sites nobody remembered.
Dead code, clones, style violations and stale preprocessor conditionals removed, with before/after metrics to show for it.
We package the rule set as a tool your engineers run on your own servers, whenever the code changes.
Tell us the refactoring your team keeps deferring, and we'll show you what it looks like as a rule set.
Book A Free Refactoring AssessmentGeneral questions
Restructuring your code without changing what it does, at the scale of the whole system. We encode each refactoring, such as a god class split, an API migration or GOTO removal, as rules for DMS, our compiler-grade transformation engine. DMS parses every file, resolves names and types, applies the rules identically everywhere and regenerates source with your comments and layout intact. You get the refactored code and before/after metrics, not a slide deck of recommendations.
No. Those tools are good at local, interactive changes inside one language and one build configuration. clang-tidy sees the configuration it compiles, so code under other #if branches is missed. IDE refactorings work inside a loaded project and offer a fixed menu. DMS handles every preprocessor configuration, works across files and languages, runs custom rules you can't express as an IDE menu item, and produces the same result every time.
That is the acceptance bar. Every rule resolves names and types before it changes anything, so it can't silently rebind a call. Results are checked against your builds and test suites before handover. Where test coverage is thin, we measure it with branch-coverage tooling first, so everyone knows what the tests actually exercise. Rules are fixed and re-run, never hand-patched, so a problem gets fixed everywhere at once.
Multi-million-line systems are the normal case, not the stretch goal. At Tableau, more than 5,000 modules across 4M+ lines of C++ were refactored in under three months. Boeing's 5M+ line avionics C++ was restructured into a component architecture. DMS runs in parallel, and because the work is rule-based, effort grows mostly with the number of distinct refactorings, not the number of lines.
DMS has full compiler front ends for 40+ languages, including C, C++, C#, Java, COBOL, Fortran, VB6 and assembler, and it handles mixed systems where one change crosses language boundaries. Legacy languages matter most here, because IDE refactoring support for COBOL or Fortran barely exists. If your dialect or in-house language is unusual, we build the grammar for it first.
No. We work on a snapshot while your team keeps committing. When the rules are proven, we re-run them on the latest code, so nothing your engineers wrote in the meantime is lost or needs re-merging by hand. Deterministic rules make that cheap: the same rule on the new head gives the result you already reviewed, plus the same change applied to the new code.
Gen AI works around the engine, not inside it. We use it for documentation, code comprehension, module summaries, test generation and code review support. The refactorings themselves are deterministic DMS rules: same input, same output, reviewable before they run. An LLM never decides what your production code becomes. Our article on why Gen AI alone is not enough explains the reasoning.
You do. The refactored source is ordinary code in your language, and it carries no runtime royalties. Your engineers maintain it like any other code they own. If you choose the custom-tool engagement, your engineers get a rule set they run themselves on future changes, and the terms are agreed in the fixed-price proposal.
Send a short note with rough line counts, languages and the refactoring you have in mind. Under NDA, we run a free codebase assessment and return a complexity report, an automation estimate and a rough timeline in about 5 business days. After that, we quote a fixed price. Most teams start with one refactoring on one slice of the system.