97fa5fbb27
main.cpp: Simplify the condition used for text or files arguments
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-03 01:02:26 +02:00
b7a22e0e51
main.cpp: Fix indentation at line 46
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-06 22:08:19 +02:00
6945900140
main.cpp: Rename "currentArg" to "currentArgument"
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:08 +02:00
21137f5beb
Add a "--text" argument
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:02 +02:00
49dc7d0ebb
main.cpp: Use a map instead of a set and a vector in main.cpp
...
Target.hpp: make staticMap thread-local to avoid issues with the "--parallel" argument, and don't include dots in the languages array
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-08 19:45:00 +02:00
513c9a44a0
Re-add a variable to hold the current target in main.cpp, and capture it by value in the compile function
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-03-16 14:01:19 +01:00
f3d03adead
Add functions, indentation, better variables parsing and more
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-03-13 15:15:29 +01:00
beb28ef4ad
Rename the Yerbacon::exit function to Yerbacon::fail
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
7cbb424416
Add a "unit_result" type alias to main.cpp
...
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
afeeaa260f
Actually flush cout before displaying errors
2022-02-14 14:12:00 +01:00
eb709e60b0
Remove the (now useless) parallel parameter in the getFileContent() function from filefuncs.cpp
2022-02-14 14:12:00 +01:00
4253d5b922
Remove redundant usage of endl in main.cpp
2022-02-14 14:12:00 +01:00
18daa6495c
Use cerr instead of clog to make sure cout has been flushed before errors get displayed
2022-02-14 14:12:00 +01:00
a078fcd07b
Output errors to clog instead of cout
2022-02-14 14:12:00 +01:00
609567cfd1
Add a "unit" alias to main.cpp
2022-02-14 14:12:00 +01:00
b16f974eac
Use the system-wide locale
2022-02-14 14:12:00 +01:00
e720ff0f2d
Add an error message when an exception is thrown from the getFileContent() function & --parallel is not in use, and support MSVC
2022-02-14 14:12:00 +01:00
f266c35954
Use the size_t type instead of "unsigned long" for variables that hold the result of a find() call
2022-02-14 14:12:00 +01:00
458d272088
Only reassign exit_code when it is meant to be EXIT_FAILURE
2022-02-14 14:12:00 +01:00
30ae9d7369
Remove a useless space in main.cpp
2022-02-14 14:12:00 +01:00
1b9b281dec
Heavily modify Target.hpp, add a pointerAs function, and add an overload to Yerbacon::exit
2022-02-14 14:11:20 +01: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