Note that use of llvm::for_each is discouraged unless we have functors readily available.
DiagnosticOptions