polserver/pol-core/bscript/compiler/ast
turleypol da2943acb8
Tidy copy initialization (#859)
* trigger tidy

* copy&move BApplicPtr obj
always commit tidy changes

* move PolObject

* fix house add_component

* Automated clang-tidy change: performance-unnecessary-copy-initialization,performance-unnecessary-value-param

* Revert "Automated clang-tidy change: performance-unnecessary-copy-initialization,performance-unnecessary-value-param"

This reverts commit bb6aab13dbdfa4aaf420cdaafaf22940f241fc5b.

* performance-unnecessary-value-param gives some weird suggestions

* Automated clang-tidy change: performance-unnecessary-copy-initialization

* minor performance improvements

* added used tidy check

* missing dependency

* renamed build so its no longer requires?

* better add docs for the sneaky fix

* silence pr check, not all headers can be compiled seperatly

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-19 08:17:28 +01:00
..
Argument.cpp Add super() function call for constructors (#694) 2024-10-10 18:06:04 +02:00
Argument.h Add super() function call for constructors (#694) 2024-10-10 18:06:04 +02:00
ArrayInitializer.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ArrayInitializer.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
BasicForLoop.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
BasicForLoop.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
BinaryOperator.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
BinaryOperator.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
BinaryOperatorShortCircuit.cpp further optimize shortcircuits (#800) 2025-08-12 08:52:50 +02:00
BinaryOperatorShortCircuit.h further optimize shortcircuits (#800) 2025-08-12 08:52:50 +02:00
BindingStatement.cpp Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
BindingStatement.h Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
Block.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
Block.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
BooleanValue.cpp Savefile rewrite (#601) 2024-01-24 18:49:06 +01:00
BooleanValue.h Add uninit, true, false keywords to grammar (#596) 2024-01-20 05:38:25 +01:00
BranchSelector.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
BranchSelector.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
CaseDispatchDefaultSelector.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
CaseDispatchDefaultSelector.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
CaseDispatchGroup.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
CaseDispatchGroup.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
CaseDispatchGroups.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
CaseDispatchGroups.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
CaseDispatchSelectors.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
CaseDispatchSelectors.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
CaseStatement.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
CaseStatement.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ClassBody.cpp Delayed AST building of class variable statements (#692) 2024-10-10 18:06:04 +02:00
ClassBody.h Delayed AST building of class variable statements (#692) 2024-10-10 18:06:04 +02:00
ClassDeclaration.cpp Add Escript support for uninitialized class functions (#808) 2025-09-05 23:23:59 +02:00
ClassDeclaration.h Add Escript support for uninitialized class functions (#808) 2025-09-05 23:23:59 +02:00
ClassInstance.cpp Initial support for class instances in Executor (#699) 2024-10-10 18:06:04 +02:00
ClassInstance.h Initial support for class instances in Executor (#699) 2024-10-10 18:06:04 +02:00
ClassParameterDeclaration.cpp Changes to default construction and base-class semantic analysis (#693) 2024-10-10 18:06:04 +02:00
ClassParameterDeclaration.h Changes to default construction and base-class semantic analysis (#693) 2024-10-10 18:06:04 +02:00
ClassParameterList.cpp Changes to default construction and base-class semantic analysis (#693) 2024-10-10 18:06:04 +02:00
ClassParameterList.h Changes to default construction and base-class semantic analysis (#693) 2024-10-10 18:06:04 +02:00
ConditionalOperator.cpp Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ConditionalOperator.h Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ConstantPredicateLoop.cpp Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ConstantPredicateLoop.h Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ConstDeclaration.cpp Enum class fixes (#805) 2025-08-19 09:07:02 +02:00
ConstDeclaration.h Enum class fixes (#805) 2025-08-19 09:07:02 +02:00
CstyleForLoop.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
CstyleForLoop.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
DebugStatementMarker.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
DebugStatementMarker.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
DictionaryEntry.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
DictionaryEntry.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
DictionaryInitializer.cpp Add support for spread operator in dictionary and struct initializers; FormatterEllipsisSpacing formatter option (#763) 2025-02-19 18:33:56 +01:00
DictionaryInitializer.h Add support for spread operator in dictionary and struct initializers; FormatterEllipsisSpacing formatter option (#763) 2025-02-19 18:33:56 +01:00
DoWhileLoop.cpp Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
DoWhileLoop.h Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ElementAccess.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ElementAccess.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ElementAssignment.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ElementAssignment.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ElementIndexes.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ElementIndexes.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ElvisOperator.cpp Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ElvisOperator.h Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
EmptyStatement.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
EmptyStatement.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
EnumDeclaration.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
EnumDeclaration.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ErrorInitializer.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ErrorInitializer.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ExitStatement.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ExitStatement.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
Expression.cpp use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
Expression.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
FloatValue.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
FloatValue.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ForeachLoop.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ForeachLoop.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
FormatExpression.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
FormatExpression.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
Function.cpp Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
Function.h Address final implementation TODOs (#706) 2024-10-10 18:06:04 +02:00
FunctionBody.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
FunctionBody.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
FunctionCall.cpp ClangTidy readability-else-after-return (#857) 2026-01-18 09:35:52 +01:00
FunctionCall.h Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
FunctionExpression.cpp Add compiler support for function expressions (#671) 2024-07-29 22:30:52 +02:00
FunctionExpression.h Add compiler support for function expressions (#671) 2024-07-29 22:30:52 +02:00
FunctionParameterDeclaration.cpp Fix handling of byref, rest, and default parameters in uninitialized functions (#814) 2025-09-06 17:26:06 +02:00
FunctionParameterDeclaration.h Fix handling of byref, rest, and default parameters in uninitialized functions (#814) 2025-09-06 17:26:06 +02:00
FunctionParameterList.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
FunctionParameterList.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
FunctionReference.cpp Tidy copy initialization (#859) 2026-01-19 08:17:28 +01:00
FunctionReference.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
GeneratedFunction.cpp Generate constructors for child classes (#703) 2024-10-10 18:06:04 +02:00
GeneratedFunction.h Generate constructors for child classes (#703) 2024-10-10 18:06:04 +02:00
Identifier.cpp Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
Identifier.h Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
IfThenElseStatement.cpp ClangTidy readability-else-after-return (#857) 2026-01-18 09:35:52 +01:00
IfThenElseStatement.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
IndexBinding.cpp use c++20 (#799) 2025-08-01 21:40:10 +02:00
IndexBinding.h Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
IntegerValue.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
IntegerValue.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
InterpolateString.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
InterpolateString.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
JumpStatement.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
JumpStatement.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
LabelableStatement.cpp Add support for while loops (#268) 2020-09-03 19:46:27 -07:00
LabelableStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
LoopStatement.cpp use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
LoopStatement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
MemberAccess.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
MemberAccess.h Introduce DAP Debugger (#608) 2024-01-28 09:49:55 +01:00
MemberAssignment.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
MemberAssignment.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
MemberAssignmentByOperator.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
MemberAssignmentByOperator.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
MethodCall.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
MethodCall.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
MethodCallArgumentList.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
MethodCallArgumentList.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ModuleFunctionDeclaration.cpp Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
ModuleFunctionDeclaration.h Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
Node.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
Node.h Clang Tidy replace typedefs with more readable using (#854) 2026-01-16 18:45:47 +01:00
NodeVisitor.cpp Add support for regular expressions (#818) 2025-11-17 18:02:45 +01:00
NodeVisitor.h Add support for regular expressions (#818) 2025-11-17 18:02:45 +01:00
Program.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
Program.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ProgramParameterDeclaration.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ProgramParameterDeclaration.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
ProgramParameterList.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ProgramParameterList.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
RegularExpressionValue.cpp Add support for regular expressions (#818) 2025-11-17 18:02:45 +01:00
RegularExpressionValue.h Add support for regular expressions (#818) 2025-11-17 18:02:45 +01:00
RepeatUntilLoop.cpp Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
RepeatUntilLoop.h Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
ReturnStatement.cpp Add super() function call for constructors (#694) 2024-10-10 18:06:04 +02:00
ReturnStatement.h Add super() function call for constructors (#694) 2024-10-10 18:06:04 +02:00
SequenceBinding.cpp Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
SequenceBinding.h Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
SpreadElement.cpp Add support for spread operator in dictionary and struct initializers; FormatterEllipsisSpacing formatter option (#763) 2025-02-19 18:33:56 +01:00
SpreadElement.h Add support for spread operator in dictionary and struct initializers; FormatterEllipsisSpacing formatter option (#763) 2025-02-19 18:33:56 +01:00
Statement.cpp use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
Statement.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
StringValue.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
StringValue.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
StructInitializer.cpp Add support for spread operator in dictionary and struct initializers; FormatterEllipsisSpacing formatter option (#763) 2025-02-19 18:33:56 +01:00
StructInitializer.h Add support for spread operator in dictionary and struct initializers; FormatterEllipsisSpacing formatter option (#763) 2025-02-19 18:33:56 +01:00
StructMemberInitializer.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
StructMemberInitializer.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
TopLevelStatements.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
TopLevelStatements.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
UnaryOperator.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
UnaryOperator.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
UninitializedFunctionDeclaration.cpp Add Escript support for uninitialized class functions (#808) 2025-09-05 23:23:59 +02:00
UninitializedFunctionDeclaration.h Add Escript support for uninitialized class functions (#808) 2025-09-05 23:23:59 +02:00
UninitializedValue.cpp Tweak parse tree to treat uninit and bools as literals (#616) 2024-02-01 15:21:52 +07:00
UninitializedValue.h Tweak parse tree to treat uninit and bools as literals (#616) 2024-02-01 15:21:52 +07:00
UserFunction.cpp Add super() function call for constructors (#694) 2024-10-10 18:06:04 +02:00
UserFunction.h Add super() function call for constructors (#694) 2024-10-10 18:06:04 +02:00
Value.cpp Add Expression, Statement, Value AST base classes, and TopLevelStatements (#229) 2020-08-17 22:53:03 -07:00
Value.h Properly scope the compiler includes to the Bscript folder. (#360) 2021-02-25 16:53:22 +01:00
ValueConsumer.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
ValueConsumer.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
VariableAssignmentStatement.cpp POLLOG* macros use the new formatting (#598) 2024-01-16 17:55:42 +01:00
VariableAssignmentStatement.h use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595) 2024-01-12 06:51:44 +01:00
VariableBinding.cpp Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
VariableBinding.h Add support for sequence and index bindings (#760) 2025-02-17 21:59:42 +01:00
VarStatement.cpp Update grammar, parser, semantic analyzer for classes; skeleton codegen and executor (#688) 2024-10-10 18:06:04 +02:00
VarStatement.h Add scope handling for functions and variables (#690) 2024-10-10 18:06:04 +02:00
WhileLoop.cpp Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00
WhileLoop.h Escript Optimizer more types and operator (#794) 2025-07-10 22:32:29 +02:00