r201189 - Fix build error caused by r201186 (GCC's "declaration of X changes meaning of Y").
Alexander Kornienko
alexfh at google.com
Tue Feb 11 14:14:03 PST 2014
Author: alexfh
Date: Tue Feb 11 16:14:03 2014
New Revision: 201189
URL: http://llvm.org/viewvc/llvm-project?rev=201189&view=rev
Log:
Fix build error caused by r201186 (GCC's "declaration of X changes meaning of Y").
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h
Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h?rev=201189&r1=201188&r2=201189&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h Tue Feb 11 16:14:03 2014
@@ -30,24 +30,24 @@ class ExprEngine;
class BugType {
private:
- const CheckName CheckName;
+ const CheckName Check;
const std::string Name;
const std::string Category;
bool SuppressonSink;
virtual void anchor();
public:
- BugType(class CheckName Check, StringRef name, StringRef cat)
- : CheckName(Check), Name(name), Category(cat), SuppressonSink(false) {}
+ BugType(class CheckName check, StringRef name, StringRef cat)
+ : Check(check), Name(name), Category(cat), SuppressonSink(false) {}
BugType(const CheckerBase *checker, StringRef name, StringRef cat)
- : CheckName(checker->getCheckName()), Name(name), Category(cat),
+ : Check(checker->getCheckName()), Name(name), Category(cat),
SuppressonSink(false) {}
virtual ~BugType() {}
// FIXME: Should these be made strings as well?
StringRef getName() const { return Name; }
StringRef getCategory() const { return Category; }
- StringRef getCheckName() const { return CheckName.getName(); }
+ StringRef getCheckName() const { return Check.getName(); }
/// isSuppressOnSink - Returns true if bug reports associated with this bug
/// type should be suppressed if the end node of the report is post-dominated
@@ -62,9 +62,8 @@ class BuiltinBug : public BugType {
const std::string desc;
virtual void anchor();
public:
- BuiltinBug(class CheckName CheckName, const char *name,
- const char *description)
- : BugType(CheckName, name, categories::LogicError), desc(description) {}
+ BuiltinBug(class CheckName check, const char *name, const char *description)
+ : BugType(check, name, categories::LogicError), desc(description) {}
BuiltinBug(const CheckerBase *checker, const char *name,
const char *description)
More information about the cfe-commits
mailing list