@@ -33,14 +33,14 @@ CXDiagnosticSeverity CXStoredDiagnostic::getSeverity() const {
3333 case DiagnosticsEngine::Error: return CXDiagnostic_Error;
3434 case DiagnosticsEngine::Fatal: return CXDiagnostic_Fatal;
3535 }
36-
36+
3737 llvm_unreachable (" Invalid diagnostic level" );
3838}
3939
4040CXSourceLocation CXStoredDiagnostic::getLocation () const {
4141 if (Diag.getLocation ().isInvalid ())
4242 return clang_getNullLocation ();
43-
43+
4444 return translateSourceLocation (Diag.getLocation ().getManager (),
4545 LangOpts, Diag.getLocation ());
4646}
@@ -57,7 +57,7 @@ CXString CXStoredDiagnostic::getDiagnosticOption(CXString *Disable) const {
5757 *Disable = cxstring::createDup ((Twine (" -Wno-" ) + Option).str ());
5858 return cxstring::createDup ((Twine (" -W" ) + Option).str ());
5959 }
60-
60+
6161 if (ID == diag::fatal_too_many_errors) {
6262 if (Disable)
6363 *Disable = cxstring::createRef (" -ferror-limit=0" );
@@ -79,7 +79,7 @@ CXString CXStoredDiagnostic::getCategoryText() const {
7979unsigned CXStoredDiagnostic::getNumRanges () const {
8080 if (Diag.getLocation ().isInvalid ())
8181 return 0 ;
82-
82+
8383 return Diag.range_size ();
8484}
8585
@@ -92,12 +92,12 @@ CXSourceRange CXStoredDiagnostic::getRange(unsigned int Range) const {
9292
9393unsigned CXStoredDiagnostic::getNumFixIts () const {
9494 if (Diag.getLocation ().isInvalid ())
95- return 0 ;
95+ return 0 ;
9696 return Diag.fixit_size ();
9797}
9898
9999CXString CXStoredDiagnostic::getFixIt (unsigned FixIt,
100- CXSourceRange *ReplacementRange) const {
100+ CXSourceRange *ReplacementRange) const {
101101 const FixItHint &Hint = Diag.fixit_begin ()[FixIt];
102102 if (ReplacementRange) {
103103 // Create a range that covers the entire replacement (or
@@ -108,4 +108,3 @@ CXString CXStoredDiagnostic::getFixIt(unsigned FixIt,
108108 }
109109 return cxstring::createDup (Hint.CodeToInsert );
110110}
111-
0 commit comments