clang
10.0.0git
|
#include "clang/Analysis/PathDiagnostic.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/Stmt.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/Token.h"
#include "clang/Rewrite/Core/HTMLRewrite.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
#include "clang/StaticAnalyzer/Core/IssueHash.h"
#include "clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <system_error>
#include <utility>
#include <vector>
Go to the source code of this file.
Functions | |
static bool | shouldDisplayPopUpRange (const SourceRange &Range) |
static void | HandlePopUpPieceStartTag (Rewriter &R, const std::vector< SourceRange > &PopUpRanges) |
static void | HandlePopUpPieceEndTag (Rewriter &R, const PathDiagnosticPopUpPiece &Piece, std::vector< SourceRange > &PopUpRanges, unsigned int LastReportedPieceIndex, unsigned int PopUpPieceIndex) |
static void | EmitAlphaCounter (raw_ostream &os, unsigned n) |
|
static |
Definition at line 969 of file HTMLDiagnostics.cpp.
References clang::html::EscapeText(), clang::SourceRange::getBegin(), clang::SourceRange::getEnd(), clang::SourceManager::getExpansionColumnNumber(), clang::SourceManager::getExpansionLineNumber(), clang::SourceManager::getExpansionLoc(), clang::SourceManager::getFileID(), clang::Rewriter::getLangOpts(), clang::SourceLocation::getLocWithOffset(), clang::Rewriter::getSourceMgr(), clang::html::HighlightRange(), clang::Lexer::MeasureTokenLength(), and SM.
|
static |
Definition at line 627 of file HTMLDiagnostics.cpp.
References clang::html::AddLineNumbers(), clang::ento::PathDiagnosticPiece::Call, clang::ento::PathDiagnosticPiece::ControlFlow, clang::html::EscapeText(), clang::ento::PathDiagnosticPiece::Event, clang::SourceManager::getBuffer(), clang::FullSourceLoc::getBufferData(), clang::FullSourceLoc::getCharacterData(), clang::SourceManager::getColumnNumber(), clang::SourceManager::getDecomposedExpansionLoc(), clang::FullSourceLoc::getDecomposedLoc(), clang::FullSourceLoc::getExpansionLoc(), clang::Preprocessor::getLangOpts(), clang::SourceManager::getLocForStartOfFile(), clang::SourceLocation::getLocWithOffset(), clang::FullSourceLoc::getManager(), clang::Rewriter::getSourceMgr(), HandlePopUpPieceStartTag(), clang::html::HighlightMacros(), clang::html::HighlightRange(), clang::Rewriter::InsertTextBefore(), clang::SourceLocation::isFileID(), clang::SourceLocation::isValid(), clang::ento::PathDiagnosticPiece::Macro, max(), clang::ento::PathDiagnosticPiece::Note, P, clang::ento::PathDiagnosticPiece::PopUp, shouldDisplayPopUpRange(), SM, and clang::html::SyntaxHighlight().
|
static |
Definition at line 615 of file HTMLDiagnostics.cpp.
References clang::html::HighlightRange(), and shouldDisplayPopUpRange().
Referenced by HandlePopUpPieceEndTag().
|
static |
Definition at line 610 of file HTMLDiagnostics.cpp.
References clang::SourceRange::getBegin(), clang::SourceRange::getEnd(), and clang::SourceLocation::isMacroID().
Referenced by HandlePopUpPieceEndTag(), and HandlePopUpPieceStartTag().