|
c7f6a3eba9
|
Actually flush cout before displaying errors
|
2021-12-29 19:11:43 +01:00 |
|
|
620bc4ba44
|
Remove the (now useless) parallel parameter in the getFileContent() function from filefuncs.cpp
|
2021-12-28 10:20:25 +01:00 |
|
|
f2322ea1bf
|
Remove redundant usage of endl in main.cpp
|
2021-12-25 18:41:39 +01:00 |
|
|
fe8a14631d
|
Use cerr instead of clog to make sure cout has been flushed before errors get displayed
|
2021-12-25 18:41:38 +01:00 |
|
|
9b2034123f
|
Output errors to clog instead of cout
|
2021-12-24 15:53:51 +01:00 |
|
|
a0e185adb5
|
Add a "unit" alias to main.cpp
|
2021-12-20 20:31:54 +01:00 |
|
|
afe411bb86
|
Use the system-wide locale
|
2021-12-20 19:39:44 +01:00 |
|
|
9824dfc7fd
|
Add an error message when an exception is thrown from the getFileContent() function & --parallel is not in use, and support MSVC
|
2021-12-15 17:25:39 +01:00 |
|
|
77d984cb45
|
Use the size_t type instead of "unsigned long" for variables that hold the result of a find() call
|
2021-12-15 13:31:39 +01:00 |
|
|
d8314513c3
|
Only reassign exit_code when it is meant to be EXIT_FAILURE
|
2021-11-12 22:29:46 +01:00 |
|
|
51e12be9a7
|
Remove a useless space in main.cpp
|
2021-11-12 22:20:09 +01:00 |
|
|
c123965098
|
Heavily modify Target.hpp, add a pointerAs function, and add an overload to Yerbacon::exit
|
2021-10-28 22:26:08 +02:00 |
|
|
2cf523bf17
|
Replace "--newlinesoff" with an assignable argument ("--newlines=on/off")
|
2021-10-20 17:11:14 +02:00 |
|
|
88d22e6183
|
Add a "--buildInfo" argument to print the compiler and optimization options used when building
|
2021-10-20 17:08:41 +02:00 |
|
|
7b8b8addd6
|
Remove the isNPOS boolean and assign lastSlash to position1 when it isn't equal to string_view::npos
|
2021-10-15 13:02:46 +02:00 |
|
|
cd8b14e00b
|
Add a missing semicolon in the definition of isNPOS in main.cpp
|
2021-10-14 23:28:58 +02:00 |
|
|
0b20c24eba
|
Make position1 and position2 constant variables in main.cpp
|
2021-10-14 23:25:55 +02:00 |
|
|
b351280b5b
|
Always verify that position1 is not equal to string_view::npos in main.cpp
|
2021-10-14 23:16:17 +02:00 |
|
|
cf6e5cfaf8
|
Don't ignore '\' characters when '/' isn't present in file names
|
2021-10-14 22:52:44 +02:00 |
|
|
1b91a2a761
|
Do not output compilation results that are made of whitespace characters
|
2021-10-08 17:46:14 +02:00 |
|
|
2458c7bb6c
|
Return EXIT_FAILURE if one of the compilation units failed
|
2021-10-08 17:37:24 +02:00 |
|
|
a2b67298a4
|
Use filesystem::path::preferred_separator at compile time to remove a few preprocessor directives in main.cpp
|
2021-10-08 16:32:41 +02:00 |
|
|
429ed02483
|
Don't output useless new lines in main.cpp
|
2021-10-08 13:29:46 +02:00 |
|
|
8ab826bf68
|
Move a condition from Target.hpp to main.cpp and add a new Yerbacon::exit function
|
2021-10-07 21:39:48 +02:00 |
|
|
a64805bd35
|
Use the constant iterators from the files set in main.cpp
|
2021-10-05 20:11:07 +02:00 |
|
|
20eff1d7b5
|
Set the initial size of Units to the number of files instead of allocating memory and using a back_inserter
|
2021-10-05 09:28:43 +02:00 |
|
|
e04fc67aae
|
Reserve memory for the Units vector
|
2021-10-05 09:15:46 +02:00 |
|
|
70f93b9200
|
Use std::transform on the files set to output the results to the Units vector
|
2021-10-05 09:13:31 +02:00 |
|
|
1e7da048d4
|
Call std::for_each in main.cpp instead of using range-based loops, to allow the use of the parallel mode
|
2021-10-05 08:38:25 +02:00 |
|
|
a3d6c5d3bc
|
Rename the exceptions caught in main.cpp
|
2021-10-03 21:20:21 +02:00 |
|
|
7c9716c45e
|
Don't include <variant> in main.cpp since it's not being used
|
2021-10-03 19:20:51 +02:00 |
|
|
ff8bf6d1de
|
Remove a newline and use a multi-variable declaration for the local booleans in main.cpp
|
2021-10-03 15:28:24 +02:00 |
|
|
5cea9251bd
|
Return a string_view instead of a string in the ArgumentAssignable::getValueFor function
|
2021-10-03 12:20:59 +02:00 |
|
|
f227182713
|
Remove a condition that is useless because of 29a6eb3e
|
2021-09-29 18:18:37 +02:00 |
|
|
80118d29a7
|
Start iterating on arguments at 1 since argv[0] is the executable's path
|
2021-09-28 21:51:51 +02:00 |
|
|
8f60e7052f
|
Remove the (argc > 0) condition since argc is always 1 or higher
|
2021-09-28 21:42:13 +02:00 |
|
|
02e8de7243
|
Show an error when an invalid argument is provided
|
2021-09-28 21:34:22 +02:00 |
|
|
43b4629a6d
|
Fix the pairs returned by the futures of the Units set
|
2021-09-26 12:38:33 +02:00 |
|
|
700ab109d2
|
Make a set of files directly instead of adding them to a vector in main.cpp
|
2021-09-26 12:37:46 +02:00 |
|
|
477337f96b
|
Remove a condition which has been useless since the e6334ad8 commit in main.cpp
|
2021-09-25 22:08:55 +02:00 |
|
|
facf460923
|
Improve the lambda used to return the compilation result in main.cpp
|
2021-09-25 17:26:45 +02:00 |
|
|
66e1926783
|
Use the max function in main.cpp
|
2021-09-25 17:03:55 +02:00 |
|
|
82520e63ba
|
Handle the "--version" argument when iterating on argc
|
2021-09-21 21:45:31 +02:00 |
|
|
44e160ebf9
|
Don't throw an exception when "isTypeString" is false in lexer.cpp
|
2021-09-14 20:20:34 +02:00 |
|
|
2b84262ea0
|
Use std::filter and std::transform instead of the std::ranges library and make the destructor of the Target class virtual
|
2021-09-12 12:00:21 +02:00 |
|
|
96bd6bf708
|
Re-add the newlinesoff argument
|
2021-09-11 11:49:57 +02:00 |
|
|
bfa8f50ad9
|
Revert "Add a "SEPARATOR" token type"
This reverts commit 47478173
|
2021-09-11 11:35:22 +02:00 |
|
|
6de05633d9
|
Add a "SEPARATOR" token type
|
2021-09-10 22:15:05 +02:00 |
|
|
76c8975e27
|
Use a reference in the Argument "==" operator, and move the currentArg variable of main.cpp into the loop used for arguments
|
2021-09-02 10:34:00 +02:00 |
|
|
1992e1d42b
|
Add transpilation of strings to lua-compatible ones, and fix a comment
|
2021-08-24 17:23:31 +02:00 |
|