Lines Matching +full:display +full:- +full:hint

1 //===- DiagnosticRenderer.cpp - Diagnostic Pretty-Printing ----------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
62 for (const auto &Hint : FixItHints) in mergeFixits() local
63 if (Hint.CodeToInsert.empty()) { in mergeFixits()
64 if (Hint.InsertFromRange.isValid()) in mergeFixits()
65 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
66 Hint.InsertFromRange, /*afterToken=*/false, in mergeFixits()
67 Hint.BeforePreviousInsertions); in mergeFixits()
69 commit.remove(Hint.RemoveRange); in mergeFixits()
71 if (Hint.RemoveRange.isTokenRange() || in mergeFixits()
72 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
73 commit.replace(Hint.RemoveRange, Hint.CodeToInsert); in mergeFixits()
75 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
76 /*afterToken=*/false, Hint.BeforePreviousInsertions); in mergeFixits()
110 for (const auto &Hint : FixItHints) in emitDiagnostic() local
111 if (Hint.RemoveRange.isValid()) in emitDiagnostic()
112 MutableRanges.push_back(Hint.RemoveRange); in emitDiagnostic()
119 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitDiagnostic()
159 /// of customizing the formatting and display of the include stack.
176 if (!DiagOpts->ShowNoteIncludeStack && Level == DiagnosticsEngine::Note) in emitIncludeStack()
195 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively()
236 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitImportStackRecursively()
246 /// Emit the module build stack, for cases where a module is (re-)built
252 DiagOpts->ShowPresumedLoc), in emitModuleBuildStack()
265 assert(SM->getFileID(Loc) == MacroFileID); in retrieveMacroLocation()
273 if (SM->isMacroArgExpansion(Loc)) { in retrieveMacroLocation()
279 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange); in retrieveMacroLocation()
280 MacroArgRange = SM->getImmediateExpansionRange(Loc); in retrieveMacroLocation()
282 MacroRange = SM->getImmediateExpansionRange(Loc); in retrieveMacroLocation()
284 CharSourceRange(SM->getImmediateSpellingLoc(Loc), IsTokenRange); in retrieveMacroLocation()
290 MacroFileID = SM->getFileID(MacroLocation); in retrieveMacroLocation()
308 MacroFileID = SM->getFileID(MacroArgLocation); in retrieveMacroLocation()
319 if (SM->isMacroArgExpansion(Loc)) { in getMacroArgExpansionFileIDs()
320 IDs.push_back(SM->getFileID(Loc)); in getMacroArgExpansionFileIDs()
321 Loc = SM->getImmediateSpellingLoc(Loc); in getMacroArgExpansionFileIDs()
323 auto ExpRange = SM->getImmediateExpansionRange(Loc); in getMacroArgExpansionFileIDs()
369 FileID BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges()
370 FileID EndFileID = SM->getFileID(End); in mapDiagnosticRanges()
378 Begin = SM->getImmediateExpansionRange(Begin).getBegin(); in mapDiagnosticRanges()
379 BeginFileID = SM->getFileID(Begin); in mapDiagnosticRanges()
385 auto Exp = SM->getImmediateExpansionRange(End); in mapDiagnosticRanges()
388 EndFileID = SM->getFileID(End); in mapDiagnosticRanges()
415 Begin = SM->getSpellingLoc(Begin); in mapDiagnosticRanges()
416 End = SM->getSpellingLoc(End); in mapDiagnosticRanges()
522 /// snippet, caret, underlines and FixItHint display as appropriate at each
565 unsigned MacroLimit = DiagOpts->MacroBacktraceLimit; in emitMacroExpansions()
583 Message << "(skipping " << (MacroDepth - MacroLimit) in emitMacroExpansions()
584 << " expansions in backtrace; use -fmacro-backtrace-limit=0 to " in emitMacroExpansions()
588 for (auto I = LocationStack.rend() - MacroEndMessages, in emitMacroExpansions()