bool SuppressAllDiagnostics; // Suppress all diagnostics.
ExtensionHandling ExtBehavior; // Map extensions onto warnings or errors?
DiagnosticClient *Client;
- LangOptions *LangOpts;
/// DiagMappings - Mapping information for diagnostics. Mapping info is
/// packed into four bits per diagnostic. The low three bits are the mapping
DiagnosticClient *getClient() { return Client; }
const DiagnosticClient *getClient() const { return Client; }
- LangOptions *getLangOpts() const { return LangOpts; }
- void setLangOpts(LangOptions *LOpts) { LangOpts = LOpts; }
-
/// pushMappings - Copies the current DiagMappings and pushes the new copy
/// onto the top of the stack.
void pushMappings();
OS.changeColor(savedColor, true);
// Emit a Visual Studio compatible line number syntax.
- // This check is a bit paranoid (in case LangOpts isn't set).
- if (Info.getDiags() && Info.getDiags()->getLangOpts() &&
- Info.getDiags()->getLangOpts()->Microsoft) {
+ if (LangOpts && LangOpts->Microsoft) {
OS << PLoc.getFilename() << '(' << LineNo << ')';
OS << " : ";
} else {
Clang.createDiagnostics(argc, argv);
if (!Clang.hasDiagnostics())
return 1;
-
- Clang.getDiagnostics().setLangOpts(&Clang.getLangOpts());
// Set an error handler, so that any LLVM backend diagnostics go through our
// error handler.