Minor cosmetic fixes (splitting lines, beautify error message).
This commit is contained in:
parent
f933cc3163
commit
be60adb510
|
@ -481,7 +481,7 @@ bool BitcodeEmitter::emit(FunctionPrototype const& node) {
|
||||||
if (argsSet.find(name) != argsSet.end()) {
|
if (argsSet.find(name) != argsSet.end()) {
|
||||||
return reportError({
|
return reportError({
|
||||||
"Two arguments with same name to function",
|
"Two arguments with same name to function",
|
||||||
node.getName().getValue(), ":", name
|
node.getName().getValue() + "()", ":", name
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
argsSet.insert(name);
|
argsSet.insert(name);
|
||||||
|
|
|
@ -86,7 +86,8 @@ include_directories(
|
||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(
|
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)
|
bison_target(Parser Monicelli.ypp ${CMAKE_CURRENT_BINARY_DIR}/Parser.cpp)
|
||||||
|
|
Reference in New Issue
Block a user