#include #include #include #include #include #include #include #include #include ">

clang: lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp File Reference (original) (raw)

#include "[clang/AST/Decl.h](Decl%5F8h%5Fsource.html)"
#include "[clang/AST/DeclBase.h](DeclBase%5F8h%5Fsource.html)"
#include "[clang/AST/Stmt.h](Stmt%5F8h%5Fsource.html)"
#include "[clang/Analysis/IssueHash.h](IssueHash%5F8h%5Fsource.html)"
#include "[clang/Analysis/MacroExpansionContext.h](MacroExpansionContext%5F8h%5Fsource.html)"
#include "[clang/Analysis/PathDiagnostic.h](PathDiagnostic%5F8h%5Fsource.html)"
#include "[clang/Basic/FileManager.h](FileManager%5F8h%5Fsource.html)"
#include "[clang/Basic/LLVM.h](LLVM%5F8h%5Fsource.html)"
#include "[clang/Basic/SourceLocation.h](SourceLocation%5F8h%5Fsource.html)"
#include "[clang/Basic/SourceManager.h](SourceManager%5F8h%5Fsource.html)"
#include "[clang/Lex/Lexer.h](Lexer%5F8h%5Fsource.html)"
#include "[clang/Lex/Preprocessor.h](Preprocessor%5F8h%5Fsource.html)"
#include "[clang/Lex/Token.h](Token%5F8h%5Fsource.html)"
#include "[clang/Rewrite/Core/HTMLRewrite.h](HTMLRewrite%5F8h%5Fsource.html)"
#include "[clang/Rewrite/Core/Rewriter.h](Rewriter%5F8h%5Fsource.html)"
#include "[clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h](PathDiagnosticConsumers%5F8h%5Fsource.html)"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/RewriteBuffer.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Sequence.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 llvm::SmallString< 32 > getIssueHash (const PathDiagnostic &D, const Preprocessor &PP)
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 std::string getSpanBeginForControl (const char *ClassName, unsigned Index)
static std::string getSpanBeginForControlStart (unsigned Index)
static std::string getSpanBeginForControlEnd (unsigned Index)
document addEventListener ("DOMContentLoaded", function() { document .querySelector('input[id="showinvocation"]') .addEventListener("click", drawArrows);document .querySelector('input[name="showCounterexample"]') .addEventListener("change", drawArrows);document .querySelector('input[name="showArrows"]') .addEventListener("change", toggleArrows);drawArrows();highlightArrowsForSelectedEvent();})

addEventListener()

document addEventListener ( "DOMContentLoaded" ,
function() { document .querySelector('input[id="showinvocation"]') .addEventListener("click", drawArrows);document .querySelector('input[name="showCounterexample"]') .addEventListener("change", drawArrows);document .querySelector('input[name="showArrows"]') .addEventListener("change", toggleArrows);drawArrows();highlightArrowsForSelectedEvent();}
)

EmitAlphaCounter()

static void EmitAlphaCounter ( raw_ostream & os, unsigned n ) static

getIssueHash()

getSpanBeginForControl()

static std::string getSpanBeginForControl ( const char * ClassName, unsigned Index ) static

getSpanBeginForControlEnd()

static std::string getSpanBeginForControlEnd ( unsigned Index) static

getSpanBeginForControlStart()

static std::string getSpanBeginForControlStart ( unsigned Index) static

HandlePopUpPieceEndTag()

HandlePopUpPieceStartTag()

static void HandlePopUpPieceStartTag ( Rewriter & R, const std::vector< SourceRange > & PopUpRanges ) static

shouldDisplayPopUpRange()

drawArrows

Initial value:

= function() {

const numOfArrows = document.querySelectorAll("path[id^=arrow]").length;

for (var i = 0; i < numOfArrows; ++i) {

drawArrow(i);

}

}

var toggleArrows = function(event) {

const arrows = document.querySelector("#arrows");

if (event.target.checked) {

arrows.setAttribute("visibility", "visible");

} else {

arrows.setAttribute("visibility", "hidden");

}

}

window.addEventListener("resize", drawArrows)

constexpr Variable var(Literal L)

Returns the variable of L.

Definition at line 1479 of file HTMLDiagnostics.cpp.