Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] AnalysisConsumer: print fully-qualified function name whil…
…e displaying progress -analyzer-display progress option prints only function names which may be ambiguous. This patch forces AnalysisConsumer to print fully-qualified function names. Patch by Alex Sidorin! Differential Revision: http://reviews.llvm.org/D16804 llvm-svn: 259646
- Loading branch information
Yury Gribov
committed
Feb 3, 2016
1 parent
82e1168
commit 8f7d8b6
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// RUN: %clang_cc1 -analyze -analyzer-display-progress %s 2>&1 | FileCheck %s | ||
|
||
void f() {}; | ||
void g() {}; | ||
void h() {} | ||
|
||
struct SomeStruct { | ||
void f() {} | ||
}; | ||
|
||
struct SomeOtherStruct { | ||
void f() {} | ||
}; | ||
|
||
namespace ns { | ||
struct SomeStruct { | ||
void f() {} | ||
}; | ||
} | ||
|
||
// CHECK: analyze_display_progress.cpp f | ||
// CHECK: analyze_display_progress.cpp g | ||
// CHECK: analyze_display_progress.cpp h | ||
// CHECK: analyze_display_progress.cpp SomeStruct::f | ||
// CHECK: analyze_display_progress.cpp SomeOtherStruct::f | ||
// CHECK: analyze_display_progress.cpp ns::SomeStruct::f |