ladybird/Libraries/LibJS
Lenny Maiorani 765936ebae
Everywhere: Switch from (void) to [[maybe_unused]] (#4473)
Problem:
- `(void)` simply casts the expression to void. This is understood to
  indicate that it is ignored, but this is really a compiler trick to
  get the compiler to not generate a warning.

Solution:
- Use the `[[maybe_unused]]` attribute to indicate the value is unused.

Note:
- Functions taking a `(void)` argument list have also been changed to
  `()` because this is not needed and shows up in the same grep
  command.
2020-12-21 00:09:48 +01:00
..
Heap LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Runtime Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
Tests LibJS: Don't treat '?.' followed by decimal digit as QuestionMarkPeriod 2020-12-14 22:25:46 +01:00
AST.cpp LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
AST.h LibJS: Parse "with" statements :^) 2020-11-28 17:16:48 +01:00
CMakeLists.txt LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Console.cpp LibJS: Use regular stack for VM call frames instead of Vector storage 2020-11-07 13:58:28 +01:00
Console.h LibJS: Move Console from Interpreter to GlobalObject 2020-09-29 21:15:06 +02:00
Forward.h Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
Interpreter.cpp LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
Interpreter.h LibJS: Get rid of Argument and ArgumentVector 2020-12-08 18:28:18 +01:00
Lexer.cpp LibJS: Don't treat '?.' followed by decimal digit as QuestionMarkPeriod 2020-12-14 22:25:46 +01:00
Lexer.h LibJS: Include source location hint in Parser::print_errors() 2020-12-06 18:52:52 +01:00
MarkupGenerator.cpp LibJS: Handle multi-line source code in MarkupGenerator 2020-10-31 20:52:54 +01:00
MarkupGenerator.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
Parser.cpp LibJS: Use new format functions everywhere 2020-12-06 18:52:52 +01:00
Parser.h LibJS: Include source location hint in Parser::print_errors() 2020-12-06 18:52:52 +01:00
Token.cpp LibJS: Use GenericLexer for Token::string_value() 2020-10-29 11:52:31 +01:00
Token.h LibJS: Add message string to Token 2020-10-26 21:38:34 +01:00