string(REPLACE -fno-exceptions "" LLVM_CFLAGS ${LLVM_CFLAGS})
string(REPLACE -fno-rtti "" LLVM_CFLAGS ${LLVM_CFLAGS})
string(REPLACE -DNDEBUG "" LLVM_CFLAGS ${LLVM_CFLAGS})
+string(REPLACE -I "-isystem" LLVM_CFLAGS ${LLVM_CFLAGS})
separate_arguments(LLVM_CFLAGS)
add_definitions(${LLVM_CFLAGS})
-add_definitions(-std=c++11 -Wall)
+add_definitions(-std=c++11 -Wall -Wextra)
add_definitions(-DQT_NO_KEYWORDS)
separate_arguments(LLVM_LDFLAGS)
class Disassembler {
public:
- Disassembler(const std::string& filename, InformationManager* manager) {}
+ Disassembler() {}
virtual ~Disassembler() {}
virtual void start() = 0;
std::function<void (uint8_t*, size_t, const std::string&,
const std::string&)> fun) = 0;
virtual Function * disassembleFunctionAt(uint64_t address, const std::string& name = "") = 0;
-protected:
- virtual bool isFunctionCall(uint64_t address) = 0;
- virtual bool isJump(uint64_t address) = 0;
};
#endif
LLVMDisassembler<ELFT>::LLVMDisassembler(const std::string& filename,
InformationManager* manager,
ELFObjectFile<ELFT>* file)
- : Disassembler(filename, manager)
+ : Disassembler()
, logger(log4cxx::Logger::getLogger("LLVMDisassembler"))
, triple("unknown-unknown-unknown")
, manager(manager)
Function * disassembleFunctionAt(uint64_t address, const std::string& name = "");
-protected:
- bool isFunctionCall(uint64_t address) {return false;}
- bool isJump(uint64_t address) {return false;}
-
private:
typedef llvm::object::ELFFile<ELFT> ELFO;
}
}
-void Mainwindow::switchMainPlane(int index) {
+void Mainwindow::switchMainPlane(int) {
stackedWidget->setCurrentWidget(objects_list[listWidget->currentItem()]);
}
}
QString SimpleStringDialog::result() {
- bool ok;
QString result = edit->text();
return result;
}
_table->cellAt(row, 1).firstCursorPosition().insertHtml(line);
}
-void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
- QWidget *widget) {
+void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem*,
+ QWidget*) {
width = 10 + _widget->boundingRect().width();
height = 25 + _widget->boundingRect().height();
if (width < 250) width = 250;
#include "ScriptingDock.hxx"
namespace {
- SCM handler (void *data, SCM tag, SCM throw_args) {
+ SCM handler (void*, SCM tag, SCM throw_args) {
scm_handle_by_message_noexit ((void*)"foo", tag, throw_args);
return SCM_BOOL_F;
}