]> granicus.if.org Git - clang/commit
[analyzer] [NFC] PathDiagnostic: Create PathDiagnosticPopUpPiece
authorCsaba Dabis <dabis.csaba98@gmail.com>
Wed, 29 May 2019 19:21:59 +0000 (19:21 +0000)
committerCsaba Dabis <dabis.csaba98@gmail.com>
Wed, 29 May 2019 19:21:59 +0000 (19:21 +0000)
commite7a001d8f146ade3192edfc082cb7d511d4a8db6
treea05a9393e761ab89104136f4c4943673ef062741
parent5f6bdf50298013296902cee0a74494f84012a18d
[analyzer] [NFC] PathDiagnostic: Create PathDiagnosticPopUpPiece

Summary:
This new piece is similar to our macro expansion printing in HTML reports:
On mouse-hover event it pops up on variables. Similar to note pieces it
supports `plist` diagnostics as well.

It is optional, on by default: `add-pop-up-notes=true`.

Extra: In HTML reports `background-color: LemonChiffon` was too light,
changed to `PaleGoldenRod`.

Reviewers: NoQ, alexfh

Reviewed By: NoQ

Subscribers: cfe-commits, gerazo, gsd, george.karpenkov, alexfh, xazax.hun,
             baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho,
             Szelethus, donat.nagy, dkrupp

Tags: #clang

Differential Revision: https://reviews.llvm.org/D60670

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362014 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
lib/Rewrite/HTMLRewrite.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp
lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
lib/StaticAnalyzer/Core/PathDiagnostic.cpp
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
test/Analysis/analyzer-config.c