]> granicus.if.org Git - clang/commit
[analyzer] Do not assert on reports ending in calls within macros.
authorAnna Zaks <ganna@apple.com>
Wed, 22 May 2013 01:54:34 +0000 (01:54 +0000)
committerAnna Zaks <ganna@apple.com>
Wed, 22 May 2013 01:54:34 +0000 (01:54 +0000)
commit61dfd6f160f7501e140704990db9c449d29f8649
tree901290ebb9774263f8108e2b0c2f45aee59e0387
parent82b0001f79568199c7e5aa564f7ca9d43cc89d86
[analyzer] Do not assert on reports ending in calls within macros.

The crash is triggered by the newly added option (-analyzer-config report-in-main-source-file=true) introduced in r182058.

Note, ideally, we’d like to report the issue within the main source file here as well.
For now, just do not crash.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182445 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/PathDiagnostic.cpp
test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h
test/Analysis/diagnostics/report-issues-within-main-file.cpp