summaryrefslogtreecommitdiff
path: root/clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp')
-rw-r--r--clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp b/clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp
index f9af7f2..90ab7e5 100644
--- a/clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp
+++ b/clang/include/clang/Analysis/Analyses/IntervalSolver/Log.hpp
@@ -1,26 +1,20 @@
#ifndef LOG_HPP
#define LOG_HPP
+// could not be hackier, but C++ is annoying
+#define protected public
+#include <streambuf>
+#undef protected
+
#include <string>
#include <iostream>
#include <map>
#include <cstdio>
namespace solver_log {
-
struct Logger : public std::ostream {
- Logger(std::streambuf*, const std::string&)
+ Logger(std::streambuf* buffer, const std::string& name)
: std::ostream(NULL) { }
-
- bool enabled() const {
- return false;
- }
-
- bool enabled(bool) {
- return false;
- }
-
- private:
};
Logger strategy(std::cerr.rdbuf(), "strategy");