diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:17:02 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:17:02 +0000 |
commit | 10346667771e082e27391fb42a67644a25fdaa32 (patch) | |
tree | 70df0a52c8564c29c735bf3535973118fb147250 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | f98597a163ec2c262716f53c05090a0ca1837309 (diff) | |
download | bcm5719-llvm-10346667771e082e27391fb42a67644a25fdaa32.tar.gz bcm5719-llvm-10346667771e082e27391fb42a67644a25fdaa32.zip |
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, clang edition.
If you want more details about this, you can see some of the commits to
Debug.h in LLVM recently. This is just the clang section of a cleanup
I've done for all uses of DEBUG_TYPE in LLVM.
llvm-svn: 206849
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index a08a2269c9d..ea6af07f347 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -12,8 +12,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "BugReporter" - #include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h" #include "clang/AST/ASTContext.h" #include "clang/AST/DeclObjC.h" @@ -40,6 +38,8 @@ using namespace clang; using namespace ento; +#define DEBUG_TYPE "BugReporter" + STATISTIC(MaxBugClassSize, "The maximum number of bug reports in the same equivalence class"); STATISTIC(MaxValidBugClassSize, |