Minor cosmetic fixes (splitting lines, beautify error message).

This commit is contained in:
Stefano Sanfilippo 2015-03-08 11:29:26 +01:00
parent f933cc3163
commit be60adb510
2 changed files with 3 additions and 2 deletions

View File

@ -481,7 +481,7 @@ bool BitcodeEmitter::emit(FunctionPrototype const& node) {
if (argsSet.find(name) != argsSet.end()) {
return reportError({
"Two arguments with same name to function",
node.getName().getValue(), ":", name
node.getName().getValue() + "()", ":", name
});
}
argsSet.insert(name);

View File

@ -86,7 +86,8 @@ include_directories(
)
add_definitions(
-Wall -Wextra -Werror -Wno-unused-parameter -Wno-deprecated-register -std=c++0x -DYYDEBUG=0 -O2
-Wall -Wextra -Werror -Wno-unused-parameter -Wno-deprecated-register
-std=c++0x -DYYDEBUG=0 -O2
)
bison_target(Parser Monicelli.ypp ${CMAKE_CURRENT_BINARY_DIR}/Parser.cpp)