[cfe-commits] r133802 - /cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Fri Jun 24 10:28:31 PDT 2011
Author: akirtzidis
Date: Fri Jun 24 12:28:31 2011
New Revision: 133802
URL: http://llvm.org/viewvc/llvm-project?rev=133802&view=rev
Log:
In TextDiagnosticPrinter::EmitCaretDiagnostic, don't always drop fixits if the caret location
points to a macro instantiation.
Modified:
cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
Modified: cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp?rev=133802&r1=133801&r2=133802&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp (original)
+++ cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp Fri Jun 24 12:28:31 2011
@@ -317,7 +317,8 @@
SourceLocation OneLevelUp = SM.getImmediateInstantiationRange(Loc).first;
// FIXME: Map ranges?
- EmitCaretDiagnostic(Level, OneLevelUp, Ranges, NumRanges, SM, 0, 0, Columns,
+ EmitCaretDiagnostic(Level, OneLevelUp, Ranges, NumRanges, SM,
+ Hints, NumHints, Columns,
OnMacroInst + 1, MacroSkipStart, MacroSkipEnd);
// Map the location.
@@ -355,7 +356,7 @@
}
OS << "note: instantiated from:\n";
- EmitCaretDiagnostic(Level, Loc, Ranges, NumRanges, SM, Hints, NumHints,
+ EmitCaretDiagnostic(Level, Loc, Ranges, NumRanges, SM, 0, 0,
Columns, OnMacroInst + 1, MacroSkipStart,
MacroSkipEnd);
return;
More information about the cfe-commits
mailing list