]> granicus.if.org Git - clang/commit
[analyzer] Merge TextPathDiagnostics and ClangDiagPathDiagConsumer.
authorJordan Rose <jordan_rose@apple.com>
Fri, 16 Aug 2013 01:06:30 +0000 (01:06 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 16 Aug 2013 01:06:30 +0000 (01:06 +0000)
commit5fba5a789a238c29ef811a39a39be722443ec1b1
tree3c037c3fe26fc529601eff8728d92f876d06b841
parent2f835ca26aad970be44227d40269db45e73d0a08
[analyzer] Merge TextPathDiagnostics and ClangDiagPathDiagConsumer.

This once again restores notes to following their associated warnings
in -analyzer-output=text mode. (This is still only intended for use as a
debugging aid.)

One twist is that the warning locations in "regular" analysis output modes
(plist, multi-file-plist, html, and plist-html) are reported at a different
location on the command line than in the output file, since the command
line has no path context. This commit makes -analyzer-output=text behave
like a normal output format, which means that the *command line output
will be different* in -analyzer-text mode. Again, since -analyzer-text is
a debugging aid and lo-fi stand-in for a regular output mode, this change
makes sense.

Along the way, remove a few pieces of stale code related to the path
diagnostic consumers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188514 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/StaticAnalyzer/Core/Analyses.def
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
include/clang/StaticAnalyzer/Core/PathDiagnosticConsumers.h
lib/Frontend/CompilerInvocation.cpp
lib/StaticAnalyzer/Core/CMakeLists.txt
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp [deleted file]
lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
test/Analysis/diagnostics/text-diagnostics.c [new file with mode: 0644]
test/Analysis/retain-release-path-notes-gc.m
test/Analysis/retain-release-path-notes.m